Mainframe Technologies: COBOL, CICS, JCL, IMS & DB2

Test your knowledge of mainframe systems including COBOL programming, CICS transaction processing, JCL job control, IMS database operations, and DB2 SQL error codes.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

When an I/O error occurred during data base access it returns

  1. AJ
  2. AI
  3. AO
  4. AM
Question 2 Multiple Choice (Single Answer)

When it reaches the end of the data base it returns

  1. GB
  2. AJ
  3. AI
  4. AM
Question 3 Multiple Choice (Single Answer)

The function calls used for reposition the dataset at the time of restart are

  1. XRST and INIT
  2. CHKP and INIT
  3. CHKP and XRST
  4. RST and INIT
Question 4 Multiple Choice (Single Answer)

What is the DISPOSITION of a dataset if the DISP field is not coded in the JCL?

  1. (NEW,CATLG,CATLG)
  2. (NEW,DELETE,DELETE)
  3. (NEW,CATLG,DELETE)
  4. (OLD,CATLG,UNCATLG)
Question 5 Multiple Choice (Single Answer)

What are the maximum number of steps that can be coded in a JCL?

  1. 255
  2. 16
  3. 256
  4. No limit
Question 6 Multiple Choice (Single Answer)

Sqlcode -911 means

  1. Timestamp mismatch
  2. Authorization failure
  3. Deadlock, rollback done
  4. Deadlock or time-out
Question 7 Multiple Choice (Single Answer)

Which of the following is a psuedo-converstaion command in CICS?

  1. START
  2. LINK
  3. RETURN
  4. GETMAIN
Question 8 Multiple Choice (Single Answer)

Which of the following USAGE CLAUSE cannot contain a PIC clause while declaration

  1. COMP-1
  2. COMP
  3. COMP-3
  4. DISPLAY
Question 9 Multiple Choice (Single Answer)

FSET sets the MDT value to?

  1. 1
  2. -1
  3. 0
  4. random value
Question 10 Multiple Choice (Single Answer)

Which of the following is not a type of Queue?

  1. Local Queue
  2. Initiation Queue
  3. Transmission Queue
  4. Channel Queue
Question 11 Multiple Choice (Single Answer)

ATI stands for?

  1. Automatic Transaction Initiation
  2. Automatic Task Initiation
  3. Automatic Transaction Identifier
  4. Automatic Task Identifier
Question 12 Multiple Choice (Single Answer)

Image copy cannot be done for which of the below object?

  1. Database
  2. Tablespace
  3. Index
  4. View
Question 13 Multiple Choice (Single Answer)

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

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

How many subscripts or indexes are allowed for an OCCURS clause?

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

01 WS-TOP PIC X(1) 01 WS-TOP-RED REDEFINES WS-TOP PIC X(2). If you MOVE "12" to WS-TOP-RED, DISPLAY WS-TOP will show

  1. 12
  2. 1
  3. 2
  4. 121
Question 16 Multiple Choice (Single Answer)

Indicate which of the following is true about the 88 level entry.

  1. It is used for individual data item in working-storage section.
  2. It is used for items with rename clause
  3. It is used for a data item which redefines another data item.
  4. It is used for a condition name which can have either a true or false
Question 17 Multiple Choice (Single Answer)

IF A = 1 OR 2 OR 3 NEXT SENTENCE ELSE MOVE A TO B. Which of the following describes the above sentence correctly.

  1. IF A NOT = 1 OR 2 OR 3 MOVE A TO B.
  2. IF NOT A = 1 AND 2 AND 3 MOVE A TO B.
  3. IF A NOT = 1 AND 2 AND 3 MOVE A TO B.
  4. IF A NOT = 1 OR A NOT = 2 OR A NOT = 3 MOVE A TO B.
Question 18 Multiple Choice (Single Answer)

Determine the total number of bytes in the following 01 REC-1. 02 FIRST-GROUP. 03 A1 PIC X(4). 03 A2 PIC 99. 02 REDEFINES FIRST-GROUP. 03 A3 PIC 999. 03 A4 PIC 999. 02 THIRD-GROUP. 03 A5 OCCURS 5 TIMES PIC 99.

  1. 22
  2. 16
  3. 12
  4. 14
Question 19 Multiple Choice (Single Answer)

What is level 66 used for?

  1. Redefines Clause
  2. Renames Clause
  3. Elementary Level Items
  4. Condition Names.
Question 20 Multiple Choice (Single Answer)

What are the different data types available in COBOL?

  1. Alpha-numeric (X), alphabetic (A) and numeric(9).
  2. Alpha-numeric (X) and numeric(9).
  3. Alpha-numeric (X), alphabetic (A), String (S) and numeric(9)
  4. None of the above