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?
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 - What is the purpose of coding MSGCLASS parameter in job statement?
To specify the output destination for the system and Job messages when the job is complete. Syntax : MSGCLASS = CLASS
Q 3 - What will happen to Step2 if Step1 executes with RC=0?
//TXXXXXX JOB (XXXXX), ’XXXX’ //STEP1 EXEC PGM = PR1 //STEP2 EXEC PGM = PR2, COND = ONLY
Step2 will be bypassed as we have coded ONLY, which means Step will be executed only if the previous steps abend.
Q 4 - A STEPLIB statement is used in order to identify the location of the program to be executed within a Job Step. The STEPLIB statement is specified after the EXEC statement and before the DD statement of the job step. State whether true or false?
This statement is correct.
Q 5 - How you will define a temporary dataset in JCL?
A temporary dataset is the one that is created and deleted within a job and is declared as DSN=&&TEMP. Do not mention the DSN parameters with this.
Q 6 - Which utility is used for copy, merge, compress, backs up, or restores partitioned data sets?
IEBCOPY is used to copy, merge, compress, backs up, or restores partitioned data sets.
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?
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
In-stream procedure will be invoked.
Q 9 - Up to which level cataloged and in-stream procedure can invoke other procedure?
Cataloged and In-stream procedure can invoke other procedure up to 15 levels only.
Q 10 - Calling a procedure from within a procedure is called a nested procedure. Procedures can be nested up to 15 levels. State whether true or false?
This is self explanatory.