Mainframe COBOL and JCL Fundamentals

Test your knowledge of mainframe computing with questions covering COBOL programming (data types, storage formats, control structures) and JCL (job control, dataset management, DD statements).

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which INFO-Variable is used to store the current user-id which is connected to demand?

  1. INFO-PREVIOUS-PROGRAM-ID
  2. INFO-USERID
  3. INFO-PROGRAM-ID
  4. INFO-CONVERSATION
Question 2 True/False

CONTINUE is like a null statement (do nothing) , while NEXT SENTENCE transfers control to the next sentence

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

How many bytes will a S9(8) COMP field occupy ?

  1. 4
  2. 7
  3. 8
  4. 2
Question 4 Multiple Choice (Single Answer)

What compiler option would you use for dynamic linking?

  1. LET
  2. REUS
  3. DYNAM
  4. NULL
Question 5 Multiple Choice (Single Answer)

A DD statement has 2 types of parameters. Name them ?

  1. Keyword, Control
  2. Positional, Keyword
  3. Dynamic, Static
  4. Named, Dynamic
Question 6 Multiple Choice (Single Answer)

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

  1. STATUS
  2. NOTIFY
  3. ENDMSG
  4. USER
Question 7 True/False

DD DUMMY statement specifies no space allocation & no disposition processing

  1. True
  2. False
Question 8 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 9 True/False

OCCURS clause cannot be at the 01 level?

  1. True
  2. False
Question 10 True/False

Sign is stored in the last nibble in a COMP-3 Field

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

What is the mode in which you will OPEN a file for writing?

  1. OUTPUT
  2. INPUT
  3. EXTEND
  4. APPEND
Question 12 Multiple Choice (Single Answer)

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

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

What statement marks the end of an in-stream or Catalogued procedure in a JOB?

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

What is the maximum length of a single line of JCL ?

  1. 71 bytes
  2. 60 bytes
  3. 55 bytes
  4. 80 bytes
Question 15 True/False

Performing a SECTION will cause all the paragraphs that are part of the section, to be performed.

  1. True
  2. False
Question 16 True/False

In an EVALUATE statement, I Cannot give a complex condition on a when clause?

  1. True
  2. False
Question 17 True/False

COMP is a binary storage format while COMP-3 is packed decimal format.

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

What is the maximum value that can be stored in S9(8) COMP?

  1. 9999999
  2. 999999999
  3. 99999999
  4. 9999999999999999
Question 19 Multiple Choice (Single Answer)

When output dataset space is required, what quantity categories are used ?

  1. Primary, Secondary, Directory
  2. Address, Units, CONTIG or ALS
  3. Displacement and length
  4. Megabytes, Kilobytes and Bytes
Question 20 Multiple Choice (Single Answer)

The level number 88 in cobol can be used to

  1. describe independent elementary items in the Working-Storage section
  2. give condition names to the values that a field contain
  3. describe both elementary and group items
  4. none of the above