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 - In Job processing, what happens in Conversion stage?
The JCL along with the PROC is converted into an interpreted text to be understood by JES and stored into a dataset, which we call as SPOOL.
Q 2 - In Job processing, what happens in Execution stage?
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 PRTY parameter in job statement?
To specify the priority of the job within a job class. If this parameter is not specified, then the job is added to the end of the queue in the specified CLASS. Syntax : PRTY=N
Q 4 - Calling a procedure from within a procedure is called a nested procedure. Procedures can be nested up to 15 levels. The nesting can be completely in-stream or cataloged. We cannot code an in-stream procedure within a cataloged procedure. State whether true or false?
This statement is correct.
Q 5 - Which parameter is used to check the syntax of a JCL without executing it?
TYPRUN = SCAN checks the syntax errors of the JCL without executing it.
Q 6 - How you will concatenate the dataset in JCL?
To concatenate the dataset in JCL, code the DD statements continuously & give DDNAME only for first DD like shown below:
//NAME1 DD DSN=file.name1,DISP=SHR
// DD DSN=file.name2,DISP=SHR
// DD DSN=file.name3,DISP=SHR
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) //STEP1 EXEC PROC1 //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
Catalog procedure will be invoked.
PROC is used for declaring a procedure.
Q 10 - Which utility is used to run a COBOL-DB2 program?
IKJEFT01 utility is used to run a COBOL-DB2 program.