Mainframe Programming: Natural, COBOL, and JCL

Test your knowledge of mainframe programming including Natural abend codes, COBOL programming, JCL concepts, DFSORT utilities, and DB2/SQL operations

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

How to differenciate between creting a PS and PDS using 3.2

  1. Value in Directory Blk
  2. Value in Blk Size
  3. Both
  4. None of the above
Question 2 Multiple Choice (Single Answer)

What is the minimum number of PDS in one Directory

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

which is the utility to copy sequential datasets

  1. IEBCOPY
  2. IEBGENER
  3. IEFBR14
  4. IDCAMS
Question 4 Multiple Choice (Single Answer)

Why occurs can not be used in 01 level ?

  1. 01 is record level
  2. No multiple record level fields
  3. Occurs repeat the fields only
  4. All of the above
Question 5 Multiple Choice (Single Answer)

Read the following code. 01 ws-n pic 9(2) value zero. a-para move 5 to ws-n. perform b-para ws-n times. b-para. move 10 to ws-n. How many times will b-para be executed ?

  1. 5
  2. 10
  3. infinite
  4. Never
Question 6 Multiple Choice (Single Answer)

How to create LIKE table

  1. Using the CREATE parameter in a LIKE table statement
  2. Using the LIKE parameter
  3. Using the LIKE parameter in a CREATE table statement
  4. None of the above
Question 7 Multiple Choice (Single Answer)

What is SPUFI

  1. SQL processing using file input
  2. SQ Linear processing using file input
  3. SQL processing using file
  4. None of the above
Question 8 Multiple Choice (Single Answer)

COBOL internal SORT and MERGE is done by

  1. SSRANGE
  2. COBOL COMPILER
  3. SYSTEM
  4. DFSORT
Question 9 Multiple Choice (Single Answer)

Abend code NAT0080?

  1. command or program name must start with a letter
  2. Output work file is full
  3. Numeric field is not allowed
  4. move operation failed
Question 10 Multiple Choice (Single Answer)

Abend code NAT0082?

  1. Format/ length conflict
  2. Invalid data for numeric input field
  3. Error during open processing
  4. Text is invalid command or program does not exist in the library
Question 11 Multiple Choice (Single Answer)

Abend code NAT0932?

  1. Format/ length conflict
  2. Input value for numeric field is not numeric
  3. program version error
  4. none of the above
Question 12 Multiple Choice (Single Answer)

Abend code NAT0936?

  1. Target field too small for field portion
  2. Format/ length conflict
  3. The output work file is full
  4. Error during open processing
Question 13 Multiple Choice (Single Answer)

Abend code NAT1100?

  1. Response code from adabas vista
  2. The output work file is full
  3. program version error
  4. Input value for numeric field is not numeric
Question 14 Multiple Choice (Single Answer)

Abend code NAT1305?

  1. Input not available
  2. Target field too small for field portion
  3. Numeric value truncated in Move/ Assign operation
  4. Invalid data for numeric input field
Question 15 Multiple Choice (Single Answer)

Abend code NAT1314?

  1. Target field too small for field portion
  2. The output work file is full
  3. Text is invalid command or program does not exist in the library
  4. option 2 & 3
Question 16 Multiple Choice (Single Answer)

Abend code NAT1507?

  1. no input file
  2. program not available in the library
  3. The output work file is full
  4. invalid program name
Question 17 Multiple Choice (Single Answer)

Abend code NAT1505?

  1. program version error
  2. Numeric value truncated in Move/ Assign operation
  3. Target field too small for field portion
  4. Invalid data for numeric input field
Question 18 Multiple Choice (Single Answer)

Abend code NAT1512?

  1. Error during open processing
  2. Response code from adabas vista
  3. The length of the record to be written exceeds the output dataset record length
  4. Format/ length conflict
Question 19 True/False

Can DFSORT merge 17 files into a single file (using conventional merge)

  1. True
  2. False
Question 20 True/False

Will steplib override the job library during execution?

  1. True
  2. False