Search test library by skills or roles
⌘ K

Adaface Sample IBM JCL Questions

Here are some sample IBM JCL questions from our premium questions library (10273 non-googleable questions).

Skills

🧐 Question

Medium

Disposition Parameters
JCL Syntax
Dataset Management
Solve
Consider the following JCL snippet:
 image
In MYJOB, PROG1 in STEP1 uses the dataset MY.DS.INPUT with a disposition of (OLD,DELETE,KEEP). PROG2 in STEP2 also uses the dataset MY.DS.INPUT with a disposition of (NEW,PASS,DELETE).
            
            Assume that STEP1 executed successfully, but STEP2 failed during its execution. What would be the status of the dataset MY.DS.INPUT after the job MYJOB is run?
A: MY.DS.INPUT will be deleted.
            B: MY.DS.INPUT will be kept and can be used by other jobs.
            C: MY.DS.INPUT will be newly created.
            D: MY.DS.INPUT will be available for the duration of the job, then deleted.
            E: MY.DS.INPUT status cannot be determined with the provided information.

Medium

Execution Order and Return Codes
Job Control
Execution Order
Return Codes
Solve
Consider a JCL job that needs to execute five steps: STEP01, STEP02, STEP03, STEP04, and STEP05. The steps represent data initialization, data processing, data validation, error handling, and job finalization respectively.
            
            The execution rules are as follows:
            
            1. The job should always start with STEP01.
            2. STEP02 should only execute if STEP01 completes successfully with a return code (RC) of 0.
            3. STEP03 should always run after STEP02, irrespective of STEP02's return code.
            4. STEP04 should only execute if either STEP02 or STEP03 fails, i.e., return a code not equal to 0.
            5. STEP05 should always be the last step, and should only execute if all the previous steps were successful (each returning a code of 0).
            
            Given these rules, how would you design the JCL job using the IF/THEN/ELSE/ENDIF construct?
 image
🧐 Question🔧 Skill

Medium

Disposition Parameters
JCL Syntax
Dataset Management

2 mins

IBM JCL
Solve

Medium

Execution Order and Return Codes
Job Control
Execution Order
Return Codes

2 mins

IBM JCL
Solve
🧐 Question🔧 Skill💪 Difficulty⌛ Time
Disposition Parameters
JCL Syntax
Dataset Management
IBM JCL
Medium2 mins
Solve
Execution Order and Return Codes
Job Control
Execution Order
Return Codes
IBM JCL
Medium2 mins
Solve

Trusted by recruitment teams in enterprises globally

Amazon Morgan Stanley Vodafone United Nations HCL PayPal Bosch WeWork Optimum Solutions Deloitte Microsoft NCS Doubtnut Sokrati J&T Express Capegemini

We evaluated several of their competitors and found Adaface to be the most compelling. Great library of questions that are designed to test for fit rather than memorization of algorithms.


Swayam Narain, CTO, Affable

hashtag image heart icon Swayam
customers across world
Join 1200+ companies in 75+ countries.
Try the most candidate friendly skills assessment tool today.
g2 badges
Ready to streamline your recruitment efforts with Adaface?
Ready to streamline your recruitment efforts with Adaface?
logo
40 min tests.
No trick questions.
Accurate shortlisting.
ada
Ada
● Online
Previous
Score: NA
Next
✖️