-
-
//MYJOB JOB(T,U202,SH1),'FRANK SMITH',CLASS=A //STEP01 EXEC PGM=PGM01 //INFILE DD DSN=TEST.PAYROLL.DATA,DISP=SHR //SYSOUT SYSOUT=A //STEP02 EXEC PGM=PGM02 //INFILE DD DSN=TEST.PERSONEL.DATA,DISP=SHR Which change to STEP02 above will specify that STEP02 CANNOT be automatically restarted by an operator if that step fails during execution?
Choice 1 //STEP02 EXEC PGM=PGM02,AR=NS Choice 2 //STEP02 EXEC PGM=PGM02,RST=NOP Choice 3 //STEP02 EXEC PGM=PGM02,ARST=NOP Choice 4 //STEP02 EXEC PGM=PGM02,OP=NST Choice 5 //STEP02 EXEC PGM=PGM02,RD=NR
-
Describe the EXEC statement, its meaning, syntax and keywords?
The EXEC statement identifies the program to be executed via a PGM=program name keyword. Its format is //jobname EXEC PGM=program name. The PARM= keyword can be used to pass external values to the executing program.
-
How do you designate a comment in JCL?
The comment statement is //* followed by the comments.
-
-
What is the meaning of the EXEC statement keyword, COND? What is its syntax?
COND specifies the conditions for executing the subsequent job step. The value after the COND= is compared to the return codes of the preceding steps and if the comparison is true, the step is bypassed. (If this answer confuses you, welcome to the club - memorize it and don't ask questions!)
-
What is the purpose of the PARM keyword in the EXEC statement?
The value after the PARM= specifies control information to be passed to the executing program of the job step.
-
What is RESTART? How is it invoked?
RESTART is a JOB statement keyword. It is used to restart the job at a specified step rather than at the beginning.
-
-
-
What is MOD and when would you use it?
DISP=MOD is used when the dataset can be extended, ie, you can add records at the end of an existing dataset.
-
-
What are the kinds of job control statements?
The JOB, EXEC and DD statement.
-
-
-
-
Explain concatenating datasets?
Datasets can be grouped in a DD statement one after another, eg. in a JOBLIB statement where the load module can exist in one of many datasets.
-
-
-
JCL Interview Questions
Ans