Mainframe JCL Fundamentals

Covers JCL syntax, parameters, procedures, conditional execution, and mainframe data set management

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

KSDS AND RRDS FILES CAN BE INPUT RANDOMLY (DIRECTLY) BY

  1. PUT STATEMENT
  2. READ STATEMENT
  3. POINT STATEMENT
  4. GET STATEMENT
Question 2 True/False

GENERATING A REPORT IS SIMPLE IN EASYTRIEVE.

  1. True
  2. False
Question 3 Multiple Choice (Single Answer)

What is the keyword sub parameter that can be used in the DD operand to repeat the unit specification that is already mentioned for a dataset in any previous DD statements?

  1. UNIT=LIKE ddname
  2. UNIT=SER ddname
  3. UNIT=AFF=ddname
  4. UNIT=*.& ddname
Question 4 True/False

A maximum of 255 steps can be included in a single JCL.

  1. True
  2. False
Question 5 Multiple Choice (Multiple Answers)

Which of the following are not allowed in procedures in jcl?

  1. JOBLIB
  2. STEPLIB
  3. null statement(//)
  4. DD
Question 6 Multiple Choice (Single Answer)

Which TIME parameter will allow the step to run for unlimited amount of CPU time?

  1. 1440
  2. MAXIMUM
  3. NOLIMIT
  4. 32767
Question 7 Multiple Choice (Single Answer)

what type of exception occurs when you try to perform arithematic operation on non numeric data?

  1. Operational exception
  2. Address exception
  3. Data exception
  4. Numeric exception
Question 8 Multiple Choice (Single Answer)

What abend is issued when the system cannot find the member in the indicated dataset in the JCL?

  1. SOC7
  2. S013-20
  3. S013-18
  4. SOC4
Question 9 Multiple Choice (Single Answer)

Which parameter holds the job from execution until it is released by the operator?

  1. TYPRUN=HOLD
  2. TYPRUN=SCAN
  3. TYPRUN=CHECK
  4. TYPRUN
Question 10 Multiple Choice (Single Answer)

Which of the following is true:

  1. Under no circumstances must a DD statement precede an EXEC statement.
  2. The OPERATION JOB can be coded in position 4.
  3. An OPERATION can be coded beyond position 72, as long as it starts before position 72.
  4. A JCL OPERATION must be followed and preceded by at least one blank.
Question 11 Multiple Choice (Multiple Answers)

What are the correct values for the DSN parameter of a temporary data set? (2 answers)

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

Complete correctly: 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...

  1. COND=(8,LE)
  2. COND=(8,GE)
  3. COND=(8,LT)
  4. COND=(8,GT)
Question 13 Multiple Choice (Single Answer)

What is correct?

  1. A REGION parameter on an EXEC statement, overrides the REGION parameter on the JOB statement.
  2. A REGION parameter on an EXEC statement, limits the space available for that step, but will never exceed the REGION on the JOB statement.
  3. A REGION parameter on an EXEC statement, is only taken into consideration if there is no REGION parameter on the JOB statement.
  4. The sum of all REGION parameters on EXEC statements, must be equal to the REGION parameter on the JOB statement.
Question 14 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 15 Multiple Choice (Single Answer)

Which parameter can not be used on a JOB statement:

  1. MSGCLASS
  2. COND
  3. MGMTCLAS
  4. NOTIFY
Question 16 Multiple Choice (Multiple Answers)

Which statements concerning the JCLLIB statement are true? (2 answers)

  1. There is either a JCLLIB statement for the entire JOB, or a separate one for each EXEC statement, not both.
  2. A JCLLIB statement can not have a statement name.
  3. There can only be one JCLLIB statement per JOB.
  4. A JCLLIB statement must be coded before the first EXEC statement.
Question 17 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 18 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 statements.
  3. We can add and override parameters to all statements, but can only nullify parameters to DD and OUTPUT statements.
  4. We can nullify, override and add parameters to all statements, but can only add DD statements.
Question 19 Multiple Choice (Multiple Answers)

Which of the following are directly controlled by JCL statements: (2 answers)

  1. The passing of job control information to the Job Entry Subsystem
  2. The addressing of input resources
  3. The performance of calculations
  4. The sending of an email to the person who submitted the job
Question 20 Multiple Choice (Multiple Answers)

Which of the following equations are correct? (2 answers)

  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)