- JCL Tutorial
- JCL Home
- JCL - Overview
- JCL - Environment
- JCL - JOB Statement
- JCL - EXEC Statement
- JCL - DD Statement
- JCL - Base Library
- JCL - Procedures
- JCL - Conditional Processing
- JCL - Defining Datasets
- JCL - Input/Output Methods
- JCL - Run COBOL Programs
- JCL - Utility Programs
- JCL - Basic Sort Tricks
- JCL Useful Resources
- JCL - Questions and Answers
- JCL - Quick Guide
- JCL - Useful Resources
- JCL - Discussion
JCL Online Quiz
Following quiz provides Multiple Choice Questions (MCQs) related to JCL Framework. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.
Q 1 - Where & how do you code Identifier in JCL?
Answer : C
Explanation
Identifiers are two slashes (//) starting from column number 1. All JCL statements starts with identifiers except for two exceptions - For a delimiter statement, /* starting in col 1 and for a comment statement , //* starting at col 1.
Q 2 - In Job processing, what happens in Execution stage?
A - Selection of Initiator for execution of Job
Answer : A
Explanation
When the job reaches its highest priority, it is taken up for execution from the job queue. The JCL is read from the SPOOL, the program is executed and the output is redirected to the corresponding output destination as specified in the JCL.
Q 3 - What is the purpose of coding TIME parameter in job statement?
A - Specifies the address space required to run a job step within the job
B - Specifies the time span to be used by the processor to execute the job
Answer : B
Explanation
Time parameter specifies the time span to be used by the processor to execute the job. Syntax : TIME=(mm, ss) or TIME=ss
Q 4 - A SET statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the JCL. State whether true or false?
Answer : A
Explanation
This statement is correct.
Q 5 - Which step will be executed after Step1, if Step1 executes with RC=4?
//TXXXXXX JOB (XXXXX), ’XXXX’ //STEP1 EXEC PGM = PR1 // IF STEP1.RC GT 0 THEN //STEP2 EXEC PGM = PR2 // ELSE //STEP3 EXEC PGM = PR3 // END-IF
Answer : A
Explanation
If condition is 4 Greater than 0 and this condition is true, so Step2 will be executed and Step3 will be bypassed.
Q 6 - How you will the direct the data to spool using SYSOUT option?
Answer : D
Explanation
Code SYSOUT=*, then the data will be directed to spool.
Q 7 - In-stream procedure is coded within the same JCL member, it is called an Instream Procedure. It should start with a PROC statement and end with a PEND statement. State whether true or false?
Answer : B
Explanation
This is self explanatory.
Q 8 - PROC1 is a in-stream procedure in a JCL and with this name PROC1 one catalog procedure exists, then which procedure will be invoked - catalog or in-stream?
//TXXXXX JOB ,, NOTIFY = &SYSUID // JCLLIB ORDER = (XXXXX.PROCLIB) //PROC1 PROC //STEP1 EXEC PGM = IEFBR14 //DD1 DD DSN = TXXXXX.TEST, SPACE = (TRK, (1,1)), // DCB = (RECFM = FB, BLKSIZE = 8000, LRECL = 80), // DISP = (NEW, DELETE) //PEND //STEP1 EXEC PROC1
Answer : A
Explanation
In-stream procedure will be invoked.
Q 9 - Up to which level cataloged and in-stream procedure can invoke other procedure?
Answer : B
Explanation
Cataloged and In-stream procedure can invoke other procedure up to 15 levels only.
Q 10 - What is the output of following JCL?
//STEP1 EXEC PGM = IEBEDIT //SYSUT1 DD DSN = XXXXXX.XXXX.XXXX(XXXXXXXX), DISP = SHR //SYSUT2 DD SYSOUT = (*,INTRDR) //SYSPRINT DD SYSOUT = * //SYSIN DD * EDIT TYPE = INCLUDE, STEPNAME = (STEP3,STEP7) /*
A - It will execute only STEP1
B - It will exclude STEP3 & STEP4 from execution
Answer : C
Explanation
This utility is used to run only particular steps in a JCL.
To Continue Learning Please Login
Login with Google