Mainframe JCL Fundamentals

Test your knowledge of IBM mainframe Job Control Language (JCL) including JOB and DD statements, parameters, procedures, symbolic parameters, GDG datasets, and conditional processing.

19 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

What is correct?

  1. A REGION parameter on an EXEC statement, overrides the REGION parameter on the JOB
  2. A REGION parameter on an EXEC statement, limits the space available for that step, but
  3. A REGION parameter on an EXEC statement, is only taken into consideration if there is no
  4. The sum of all REGION parameters on EXEC statements, must be equal to the REGION
Question 2 Multiple Choice (Multiple Answers)

Which of the following concerning the COND parameter are true on EXEC statement level? (2 answers)

  1. The COND parameter always indicates that if its condition is met, the step is NOT executed.
  2. When adding the COND parameter to an EXEC statement that calls a procedure, this COND
  3. With the COND parameter, we can only check return codes.
  4. The COND parameter can check the return codes of multiple steps, but as soon as one of
Question 3 Multiple Choice (Multiple Answers)

What are the correct values for the DSN parameter of a temporary data set?

  1. &NAME&(TEMP)
  2. &&TEMP(NAME)
  3. &&NAME
  4. &NAME
Question 4 Multiple Choice (Single Answer)

When to use DISP=MOD?

  1. For both sequential and partitioned datasets to be extended or created.
  2. Only for existing datasets to be extended.
  3. For all secured sequential datasets to be extended.
  4. Only for sequential datasets to be extended or created.
Question 5 Multiple Choice (Multiple Answers)

Which of the following equations are correct?

  1. DISP=(,PASS) is equivalent to DISP=(NEW,PASS,KEEP)
  2. DISP=(,,KEEP) is equivalent to DISP=(NEW,DELETE,KEEP)
  3. DISP=(,,CATLG) is equivalent to DISP=(OLD,CATLG,CATLG)
  4. DISP=(OLD,,) is equivalent to DISP=(OLD,KEEP,KEEP)
Question 6 Multiple Choice (Multiple Answers)

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:

  1. //TU00001T JOB (ATUT000,,,,,,,,),TU00001,CLASS=7,MSGCLASS=X
  2. //TU00001T JOB (ATUT000),’TU00001’,CLASS=7,MSGCLASS=X
  3. //TU00001T JOB TU00001,’(ATUT000)’,CLASS=7,MSGCLASS=X
  4. //TU00001T JOB ,(ATUT000),CLASS=7,MSGCLASS=X
Question 7 Multiple Choice (Multiple Answers)

Indicate the correct answers about the OUTPUT statement

  1. Multiple OUTPUT statements can be coded for 1 single job step.
  2. The OUTPUT statement can be used to control the authorisation of the submitting user,
  3. The OUTPUT statement at job level must be coded before the JOB statement.
  4. The OUTPUT statement can not override the MSGCLASS parameter on the JOB statement.
Question 8 Multiple Choice (Multiple Answers)

Which of the following DD statements to create a new data set is correctly written?

  1. //DD1 DD DSN=TBISUSR.TU00001.DATA1,DISP=(NEW,KEEP),DSORG=PS,LRECL=80,
  2. //DD2 DD DSN=TBISUSR.TU00001.DATA2(MBR1),DISP=(NEW,KEEP),DSORG=PO,
  3. //DD3 DD DSN=TBISUSR.TU00001.DATA3(MBR2),DISP=(NEW,KEEP),DSORG=PO,
  4. //DD4 DD DSN=TBISUSR.TU00001.DATA4,DISP=(NEW,KEEP),DSORG=PS,
Question 9 Multiple Choice (Single Answer)

Which parameter can not be used on a JOB statement:

  1. MSGCLASS
  2. COND
  3. MGMTCLAS
  4. NOTIFY
Question 10 Multiple Choice (Single Answer)

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 ?

  1. //DD1 DD DSN=TBISUSR.TU00001.GDG(+1),DISP=(NEW,CATLG),LRECL=80,
  2. //DD1 DD DSN=TBISUSR.TU00001.GDG(+1),DISP=SHR
  3. //DD1 DD DSN=TBISUSR.TU00001.GDG(8),DISP=(NEW,CATLG),LRECL=80,
  4. //DD1 DD DSN=TBISUSR.TU00001.GDG(8),DISP=SHR
Question 11 Multiple Choice (Single Answer)

Which of the following conditional expressions can not be used with an IF-THEN-ELSE-ENDIF construction?

  1. STEP.RC NE 8
  2. ABEND = FALSE
  3. STEP.CC = U4038
  4. STEP.RUN EQ TRUE
Question 12 Multiple Choice (Multiple Answers)

Indicate the correct answers: A concatenation of datasets...

  1. ... can be used for input, to use both DD entries describing sequential datasets and DD
  2. ... can be used to write multiple output datasets.
  3. ... can contain a dummy data set in the input, which will indicate the end of the input.
  4. ... stored on different device types, can not be used for input.
Question 13 Multiple Choice (Single Answer)

When calling a procedure we can change - in different ways - this procedure. Which is the most complete statement?

  1. We can override parameters on EXEC statements and add DD statements.
  2. We can override, nullify and add parameters on all statements and add DD and/or OUTPUT
  3. We can add and override parameters to all statements, but can only nullify parameters
  4. We can nullify, override and add parameters to all statements, but can only add DD statements.
Question 14 Multiple Choice (Multiple Answers)

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?

  1. &GROUP&DIV.&SUBJCRS.&TYPE&NMBR
  2. &GROUP&DIV..&SUBJ.CRS.&TYPE&NMBR
  3. &GROUP.&DIV..&SUBJ.CRS.&TYPE.&NMBR.
  4. &GROUP.&DIV..&SUBJ.CRS..&TYPE.&NMBR.
Question 15 Multiple Choice (Single Answer)

What is the purpose of REGION key word ?

  1. specifies the amount of space required by a step
  2. specifies the amount of space required by a job
  3. both of the above
  4. none of the above
Question 16 Multiple Choice (Single Answer)

How can values be passed from the job stream to an executable program?

  1. Through the VALUE parameter
  2. Through the PARM keyword
  3. Through the PGM parameter
  4. All of the above
Question 17 Multiple Choice (Single Answer)

What parameter of the job statement is used to limit the CPU time consumed by the job?

  1. EXECMAX
  2. LIMIT
  3. TIME
  4. RUNTIME
Question 18 Multiple Choice (Single Answer)

What parameters can be used to limit the number of records written to a SYSOUT dataset ?

  1. LIMIT
  2. SIZE
  3. MAX
  4. OUTLIM
Question 19 Multiple Choice (Single Answer)

How can a job’s execution priority be modified ?

  1. PRTY parameter
  2. JOBCLASS parameter
  3. RUNTIME parameter
  4. PRIQTY parameter