IBM Mainframe JCL Fundamentals
Quiz covering JCL essentials including DD statements, DISP parameters, GDG datasets, conditional processing with COND and IF-THEN-ELSE, job control statements, and JCL coding rules
Questions
Which of the following are directly controlled by JCL statements
- The passing of job control information to the Job Entry Subsystem
- The addressing of input resources
- The performance of calculations
- The sending of an email to the person who submitted the job
Which statements concerning the JCLLIB statement are true?
- There is either a JCLLIB statement for the entire JOB, or a separate one for each EXEC
- A JCLLIB statement can not have a statement name.
- There can only be one JCLLIB statement per JOB.
- A JCLLIB statement must be coded before the first EXEC statement.
Which of the following is true:
- Under no circumstances must a DD statement precede an EXEC statement
- The OPERATION JOB can be coded in position 4.
- An OPERATION can be coded beyond position 72, as long as it starts before position 72
- A JCL OPERATION must be followed and preceded by at least one blank.
Which of the following statements are true for parameters coded on the JOB statement:
- When TIME is added to a JOB statement, the entire job run time is limited to that amount
- When REGION=0 is coded, the job will not execute due to the fact that no working storage
- The COND parameter on JOB level will place the same condition on every EXEC statement,
- TYPRUN=SCAN means that the entire JCL script will be checked for syntax and value
When I want a jobstep to be executed only if the previous jobstep has a return code of strictly less than 8, I should add...
- COND=(8,LE)
- COND=(8,GE)
- COND=(8,LT)
- COND=(8,GT)
Consider the following: //TU00001T JOB ATUT000,TU00001,CLASS=7,MSGCLASS=X,TIME=(,10) //STEP1 EXEC PGM=PROGRAM1,TIME=(,6) //STEP2 EXEC PGM=PROGRAM2 //STEP3 EXEC PGM=PROGRAM3,TIME=(,15) Which of the following statements are true:
- Step 1 can use 6 seconds of CPU time.
- Step 2 has no time limitations.
- Step 3 can use 15 seconds of CPU time.
- Each step is limited to its specifically mentioned time, but the entire job can only use 10
What is correct?
- A REGION parameter on an EXEC statement, overrides the REGION parameter on the JOB
- A REGION parameter on an EXEC statement, limits the space available for that step, but
- A REGION parameter on an EXEC statement, is only taken into consideration if there is no
- The sum of all REGION parameters on EXEC statements, must be equal to the REGION
Which of the following concerning the COND parameter are true on EXEC statement level?
- The COND parameter always indicates that if its condition is met, the step is NOT executed.
- When adding the COND parameter to an EXEC statement that calls a procedure, this COND
- With the COND parameter, we can only check return codes.
- The COND parameter can check the return codes of multiple steps, but as soon as one of
What are the correct values for the DSN parameter of a temporary data set?
- &NAME&(TEMP)
- &&TEMP(NAME)
- &&NAME
- &NAME
When to use DISP=MOD?
- For both sequential and partitioned datasets to be extended or created.
- Only for existing datasets to be extended
- For all secured sequential datasets to be extended
- Only for sequential datasets to be extended or created.
Which of the following equations are correct?
- DISP=(,PASS) is equivalent to DISP=(NEW,PASS,KEEP)
- DISP=(,,KEEP) is equivalent to DISP=(NEW,DELETE,KEEP)
- DISP=(,,CATLG) is equivalent to DISP=(OLD,CATLG,CATLG)
- DISP=(OLD,,) is equivalent to DISP=(OLD,KEEP,KEEP)
Some parameters have sub-parameters. These can be both positional or keyword sub-parameters. Suppose TU00001 is the programmer’s name, ATUT000 is the programmer's account number and it is a default value. Given this information, which statements are correct:
- //TU00001T JOB (ATUT000,,,,,,,,),TU00001,CLASS=7,MSGCLASS=X
- //TU00001T JOB (ATUT000),’TU00001’,CLASS=7,MSGCLASS=X
- //TU00001T JOB TU00001,’(ATUT000)’,CLASS=7,MSGCLASS=X
- //TU00001T JOB ,(ATUT000),CLASS=7,MSGCLASS=X
Which of the following DD statements to create a new data set is correctly written?
- //DD1 DD DSN=TBISUSR.TU00001.DATA1,DISP=(NEW,KEEP),DSORG=PS,LRECL=80,
- //DD2 DD DSN=TBISUSR.TU00001.DATA2(MBR1),DISP=(NEW,KEEP),DSORG=PO,
- //DD3 DD DSN=TBISUSR.TU00001.DATA3(MBR2),DISP=(NEW,KEEP),DSORG=PO,
- //DD4 DD DSN=TBISUSR.TU00001.DATA4,DISP=(NEW,KEEP),DSORG=PS,
Which parameter can not be used on a JOB statement
- MSGCLASS
- COND
- MGMTCLAS
- NOTIFY
The following GDG datasets exist: TBISUSR.TU00001.GDG.G0003V00 TBISUSR.TU00001.GDG.G0004V00 TBISUSR.TU00001.GDG.G0005V00 TBISUSR.TU00001.GDG.G0006V00 TBISUSR.TU00001.GDG.G0007V00 Which statement will always create: TBISUSR.TU00001.GDG.G0008V00 ?
- //DD1 DD DSN=TBISUSR.TU00001.GDG(+1),DISP=(NEW,CATLG),LRECL=80,
- //DD1 DD DSN=TBISUSR.TU00001.GDG(+1),DISP=SHR
- //DD1 DD DSN=TBISUSR.TU00001.GDG(8),DISP=(NEW,CATLG),LRECL=80,
- //DD1 DD DSN=TBISUSR.TU00001.GDG(8),DISP=SHR
Which of the following conditional expressions can not be used with an IF-THEN-ELSE-ENDIF construction?
- STEP.RC NE 8
- ABEND = FALSE
- STEP.CC = U4038
- STEP.RUN EQ TRUE
Indicate the correct answers: A concatenation of datasets...
- ... can be used for input, to use both DD entries describing sequential datasets and DD
- ... can be used to write multiple output datasets.
- ... can contain a dummy data set in the input, which will indicate the end of the input
- ... stored on different device types, can not be used for input.
When calling a procedure we can change - in different ways - this procedure. Which is the most complete statement?
- We can override parameters on EXEC statements and add DD statements.
- We can override, nullify and add parameters on all statements and add DD and/or OUTPUT
- We can add and override parameters to all statements, but can only nullify parameters
- We can nullify, override and add parameters to all statements, but can only add DD statements.
Consider the following: // SET GROUP=TBIS,DIV=USR,SUBJ=JCL,TYPE=DATA,NMBR=1 Which of the following structures containing symbolic parameters will result in: TBISUSR.JCLCRS.DATA1?
- &GROUP&DIV.&SUBJCRS.&TYPE&NMBR
- &GROUP&DIV..&SUBJ.CRS.&TYPE&NMBR
- &GROUP.&DIV..&SUBJ.CRS.&TYPE.&NMBR.
- &GROUP.&DIV..&SUBJ.CRS..&TYPE.&NMBR.
What is the function of DD DISP parameter?
- Tells the system what to do with the dataset following normal termination of the step
- Describes the status of the dataset
- Tells the system what to do with the dataset following abnormal termination of the step
- All of the above