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.
Questions
When an I/O error occurred during data base access it returns
- AJ
- AI
- AO
- AM
When it reaches the end of the data base it returns
- GB
- AJ
- AI
- AM
The function calls used for reposition the dataset at the time of restart are
- XRST and INIT
- CHKP and INIT
- CHKP and XRST
- RST and INIT
What is the DISPOSITION of a dataset if the DISP field is not coded in the JCL?
- (NEW,CATLG,CATLG)
- (NEW,DELETE,DELETE)
- (NEW,CATLG,DELETE)
- (OLD,CATLG,UNCATLG)
What are the maximum number of steps that can be coded in a JCL?
- 255
- 16
- 256
- No limit
Sqlcode -911 means
- Timestamp mismatch
- Authorization failure
- Deadlock, rollback done
- Deadlock or time-out
Which of the following is a psuedo-converstaion command in CICS?
- START
- LINK
- RETURN
- GETMAIN
Which of the following USAGE CLAUSE cannot contain a PIC clause while declaration
- COMP-1
- COMP
- COMP-3
- DISPLAY
FSET sets the MDT value to?
- 1
- -1
- 0
- random value
Which of the following is not a type of Queue?
- Local Queue
- Initiation Queue
- Transmission Queue
- Channel Queue
ATI stands for?
- Automatic Transaction Initiation
- Automatic Task Initiation
- Automatic Transaction Identifier
- Automatic Task Identifier
Image copy cannot be done for which of the below object?
- Database
- Tablespace
- Index
- View
How many bytes will a S9(8) COMP field occupy?
- 2
- 4
- 8
- 16
How many subscripts or indexes are allowed for an OCCURS clause?
- 4
- 5
- 6
- 7
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
- 12
- 1
- 2
- 121
Indicate which of the following is true about the 88 level entry.
- It is used for individual data item in working-storage section.
- It is used for items with rename clause
- It is used for a data item which redefines another data item.
- It is used for a condition name which can have either a true or false
IF A = 1 OR 2 OR 3 NEXT SENTENCE ELSE MOVE A TO B. Which of the following describes the above sentence correctly.
- IF A NOT = 1 OR 2 OR 3 MOVE A TO B.
- IF NOT A = 1 AND 2 AND 3 MOVE A TO B.
- IF A NOT = 1 AND 2 AND 3 MOVE A TO B.
- IF A NOT = 1 OR A NOT = 2 OR A NOT = 3 MOVE A TO B.
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.
- 22
- 16
- 12
- 14
What is level 66 used for?
- Redefines Clause
- Renames Clause
- Elementary Level Items
- Condition Names.
What are the different data types available in COBOL?
- Alpha-numeric (X), alphabetic (A) and numeric(9).
- Alpha-numeric (X) and numeric(9).
- Alpha-numeric (X), alphabetic (A), String (S) and numeric(9)
- None of the above