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.
JCL statements are coded on 80 bytes records.
Q 2 - What operation is performed by DD statement?
DD statement is used to include name of the dataset to operate.
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 - When the procedure is separated out from the JCL and coded in a different data store, it is called a Cataloged Procedure. A PROC statement is not mandatory to be coded in a cataloged procedure. State whether true or false?
This statement is correct.
Q 5 - What is use of DSN parameter in DD statement?
The DSN parameter refers to the physical dataset name of a newly created or existing dataset. The DSN value can be made up of sub-names each of 1 to 8 characters length, separated by periods and of total length of 44 characters (alphanumeric).
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 - SCRATCH option in GDG's physically deletes the generation when it is uncataloged. State whether true or false?
This is self explanatory.
Q 8 - What statements are invalid in a procedure?
A procedure must not contain following statements : JOB statement, JOBLIB DD statement, DD * , DD DATA - In-stream data, delimiter statement, Null statement, JES statements, PEND statement (for cataloged procedures)
Q 9 - In order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?
COND=(12,LT,STEP1), it will read the condition as 12 less than 8, which is false, so this step will be executed.
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) /*
This utility is used to run only particular steps in a JCL.