- 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 - What is JCL?
A - JCL is a set of control statements which provides the specifications necessary to process a job.
B - JCL is a interface between programs & MVS operating system.
Answer : D
Explanation
All the statements regarding JCL are correct.
Q 2 - What is the purpose of coding MSGCLASS parameter in job statement?
A - Assign a job-class to a Job which decides the nature of job
B - To specify the output destination for the system and Job messages when the job is complete
Answer : B
Explanation
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
Answer : A
Explanation
Step2 will be bypassed as we have coded ONLY, which means Step will be executed only if the previous steps abend.
Q 4 - A JOBLIB statement is used in order to identify the location of the program to be executed in a JCL. The JOBLIB statement is specified after the JOB statement and before the EXEC statement. This can be used only for the in stream procedures and programs. State whether true or false?
Answer : A
Explanation
This statement is correct.
Q 5 - How you will define a temporary dataset in JCL?
A - DSN = &&TEMP with DSN parameters
B - DSN = temp-file-name with DSN parameters
Answer : D
Explanation
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 - 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 - LIMIT option in GDG's specifies the maximum number of versions that the GDG base can hold. State whether true or false?
Answer : B
Explanation
This is self explanatory.
Q 8 - What is the output of following JCL?
//STEP1 EXEC PGM = SORT //SYSOUT DD SYSOUT = * //SORTIN DD DSN = input.file.name //SORTOUT DD DSN = output.file.name //SYSIN DD * SORT FIELDS = COPY INCLUDE=(1,6,CH,EQ,C'TUTORI') /*
A - It will copy only those rows which starts from TUTORI from input file to output file.
B - It will copy the data from input file to output file and will not eliminate the duplicates
Answer : A
Explanation
It is used to include rows based on the condition that the first 6 characters should start from TUTORI and will ignore the rest.
Q 9 - How to send the execution status of a job to a user?
Answer : C
Explanation
We use NOTIFY parameter to send the status of a job.
Q 10 - Which statement is used to end the in-stream procedure in a JCL?
Answer : C
Explanation
PEND statement is used to end the in-stream procedure.
To Continue Learning Please Login
Login with Google