IBM Mainframe JCL Programming

Quiz covering JCL statements, procedures, DD statements, COBOL programming rules, and mainframe job control concepts

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

One job has abended due to SB37 abend code. What should be the solution?

  1. The program is not getting special resource
  2. Input or Output datasets have some space unavailability
  3. The job has abended because of database problem.
  4. None of the above
Question 2 Multiple Choice (Single Answer)

What is the purpose of DD * statement in JCL?

  1. Begins the input data prompt at the system console
  2. Begins an instream dataset
  3. Marks the end of the command stream
  4. Includes all datasets within a naming pattern
Question 3 Multiple Choice (Single Answer)

How can a job send a status message to TSO user at the completion of job?

  1. STATUS
  2. NOTIFY
  3. ENDMSG
  4. USER
Question 4 Multiple Choice (Single Answer)

How can un used space allocation be returned to the system when a dataset is closed?

  1. RETURN
  2. RLSE
  3. CONTIG
  4. CLOSE
Question 5 Multiple Choice (Single Answer)

Where can program check points be stored for use in a restart?

  1. SYSCHK DD statement
  2. CHCKPOINT DD statement
  3. CHKOUT DD statement
  4. CHECK or DD statement
Question 6 Multiple Choice (Single Answer)

What statement marks the end of instream or catalogued procedure?

  1. STREAM
  2. SET
  3. PROC
  4. PEND
Question 7 Multiple Choice (Single Answer)

How can an instream dataset be terminated

  1. //
  2. //*
  3. /*
  4. None of the above
Question 8 Multiple Choice (Single Answer)

What is the maximum size of single line of JCL?

  1. 71
  2. 60
  3. 55
  4. 80
Question 9 Multiple Choice (Single Answer)

How can return codes be tested before execution of the job step?

  1. Through RC
  2. Through CODE
  3. Through COND
  4. Through RETURNCD
Question 10 Multiple Choice (Single Answer)

Must tape dataset defintion include VOL=SER specification?

  1. Yes
  2. No
  3. only for uncatalogued datasets
  4. Only for catalogued dataset
Question 11 Multiple Choice (Single Answer)

What statement can be used to send the data to another MVS JES3 node?

  1. LINK
  2. CONNECT
  3. XMIT
  4. SEND
Question 12 Multiple Choice (Single Answer)

which of the following is used to comment out a statement?

  1. //
  2. /*
  3. /+
  4. +/
Question 13 Multiple Choice (Multiple Answers)

Level Numbers that should be coded in 08 - 11 column

  1. 88
  2. 77
  3. 01
  4. 66
Question 14 Multiple Choice (Single Answer)

Program Name:

  1. Can have Letters, 0 - 9, Hyphen and cannot start or end with Hyphen, Maximum of 30 characters
  2. Can have Letters, 0 - 9 and should start with Letter, Maximum of 30 characters
  3. Can have Letters, 0 - 9 and should start with Letter, Maximum of 8 characters
  4. Can have Letters, 0 - 9, Hyphen and cannot start or end with Hyphen, Maximum of 8 characters
Question 15 Multiple Choice (Multiple Answers)

Dataname Rule:

  1. contain at least one character, but not more than 30 character
  2. contain at least one alphabetic character
  3. Can begin or end with a hyphen
  4. Names are not case-sensitive: TotalPay is the same as totalpay, Totalpay or TOTALPAY
  5. constructed from the Letters, 0 - 9, and hyphen
Question 16 Multiple Choice (Multiple Answers)

Any sentence or entry that requires more than one line, must be continued in:

  1. Area B of the next line
  2. columns 8 through 11 of the next line
  3. Area A of the next line
  4. columns 12 through 72 of the next line
Question 17 True/False

We Can browse or edit the GDG dataset if it is a tape entry.

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

What are the conditions for concatenating DD Statements?

  1. Dataset must be of same type (Disk or tape)
  2. Should not be a partioned dataset
  3. The dataset with the largest Block SIze must be listed first
  4. Record lenght of all the dataset should be the same
Question 19 Multiple Choice (Multiple Answers)

What are some of the rules involved in overriding parameters on the EXEC statements in a procedure

  1. A PGM parameter can be overriden
  2. If a parameter, which does not exist, is coded on the EXEC statement, the parameter will be added
  3. The parameter for each step need to be coded in the same order as they appear on the procedure EXEC statement
  4. All parameters for each step must be coded in order.
Question 20 Multiple Choice (Multiple Answers)

Select the statements form the below list, which are not true for overriding concatenated DD statements in PROC.

  1. The overriding DD statement need not be in a same order as the concatenated DD staements.
  2. To override only last DD statement in a concatenation, code only one overriding statement
  3. to leave a concatenated staetement unchanged, code its corresponding DD statement with a blank operand field
  4. Code a DDname against all the overiding DD statements.