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.
Answer : D
Explanation
Valid operation code in JCL are JOB, EXEC & DD. PGM is a parameter, it is not an operation.
Q 2 - What is the purpose of coding CLASS 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 : A
Explanation
Based on the time duration and the number of resources required by the job, companies assign different job classes. These can be visualized as individual schedulers used by the OS to receive the jobs. Placing the jobs in the right scheduler will aid in easy execution of the jobs. Some companies have different classes for jobs in test and production environment. Valid values for CLASS parameter are A to Z characters and 0 to 9 numeric (of length 1). Following is the syntax: CLASS=0 to 9 | A to Z
Q 3 - What is the purpose of coding PRTY 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 : C
Explanation
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 - What will happen to Step2 if Step1 abend with some error?
//TXXXXXX JOB (XXXXX), XXXX //STEP1 EXEC PGM = PR1 //STEP2 EXEC PGM = PR2, COND = ONLY
Answer : B
Explanation
Step2 will be executed as step1 abended and we have coded ONLY parameter which means this step will execute only if the previous steps abend.
Q 5 - What is use of DCB parameter in DD statement?
A - Space required for the dataset
Answer : B
Explanation
The Data Control Block (DCB) parameter details the physical characteristics of a dataset. This parameter is required for datasets that are newly created in the job step. LRECL is the length of each record held within the dataset. RECFM is the record format of the dataset.
Q 6 - Which utility is used to create, delete, rename, catalog, uncatalog datasets (other than PDS) and usually used to manage VSAM datasets?
Answer : D
Explanation
IDCAMS is used to create, delete, rename, catalog, uncatalog datasets (other than PDS) and usually used to manage VSAM datasets.
Q 7 - FORCE option in GDG's deletes the GDG versions and the GDG base. If any of the GDG versions are set with an expiration date which is yet to expire, then those are not deleted and hence the GDG base is retained. State whether true or false?
Answer : B
Explanation
This is self explanatory.
Q 8 - What sort card you will use to copy the data from one dataset to another dataset?
Answer : A
Explanation
In the SORT step mention the SYSIN & SYSOUT dataset name & in sort card code SORT FIELDS=COPY to copy data from input file to output file.
Q 9 - Which parameters we use in a JOB statement?
Answer : D
Explanation
We use positional and keyword parameters in a job statement.
Q 10 - What units are used for allocation of output dataset?
Answer : C
Explanation
In mainframes, we use cylinders, tracks and blocks for allocation of datasets.