Here is a compiled list of JCL interview questions and answers to help with your interview preparation.
3273. More information on JCL DD STATEMENTS.
15. More information on JCL PROCEDURES.
248 Days. More information on JCL JOB STATEMENTS.
One block constitutes 32KB of formatted memory/ 42KB of Unformatted memory. 6 blocks makes one Track and 15 Tracks makes one cylinder.
This is the Place where DB2 Catalog resides
This is the area where sorting takes place in DB2
Minimum Size : 1 track Maximum size : 1 cylinder
A set of precoded or reuseable JCL that can be modified through the use of parameters or override cards. Procedures can be catalogued or instream. More information on JCL PROCEDURES.
When default delimiters are used.
IEBCOPY. More information on JCL UTILITIES.
When end of volume is reached.
SYSIN. More information on IEBGENER.
Format of Sort work file
Computation of alphanumeric item and numeric item
Releases unused space by dataset.
It means that job step will be executed only if previous steps abnormally terminate. More information on COND.
It means that job step will be executed even if one of the previous steps abnormally terminates. More information on COND.
Yes. Only if cataloged in SYS1.PROCLIB. Upto 15 levels are allowed
Job will fall through to the ENDIF (not executing any steps), then resume execution with the first step AFTER the // ENDIF.
2 POSITIONAL PARAMETERS in JOB statement. More information on JOB statement.
Using COND parameter and IF condition.
Use RESTART=step name
By using 'parm' parameter in exec statement. the value mentioned here should be declared in linkage section in the program and process thru procedure division. this technique is very useful when you do not know the parametrs at the time of coding the programs.
A controlcard can be a member of a pds or a sequential dataset and is used for storing the date fields, definitions of VSAM files etc. You use controlcard because you cannot use a it in a procedure. Generally you will be calling a Proc from your Jcl and point to the dataset which is called controlcard.
COND is a condition parameter, consists of 2 subparameters, 1st - return code from the previous step, 2nd - condition. If COND is true, the step on which COND is coded will be BYPASSED.
By specifying the DISP as PASS for the temp dataset.
TEMP datasets cannot be passed between different JCLs as the dataset is deleted after JCL is completed.
JOBLIB: Used to identify a program library to search first when attempting to locate programs executed during the job's life. Must be placed after the job statement and before the first exec statement in the job.
STEPLIB: Userd to identify a private library or a system library from which include groups and jcl procedures are to be retrieved. The order in which the library names appear on the jcllib statements in the order in which they are searched in jcl procedures and include groups referenced by this job.
JCLLIB: The proc and include are searched in the pds order mentioned in the jcl library. This should be coded in the job before any steps.
Date Control Block is used to supply information to the system that allows it to manage the data sets that are created in job.