Mainframe Essentials: COBOL, CICS, DB2, JCL

Comprehensive quiz covering mainframe computing including COBOL programming, CICS transaction processing, DB2/SQL, JCL utilities, file management (SAM, VSAM, TSQ), and IBM mainframe-specific tools

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

What do you do if you do not want characters entered by the user to be folded to uppercase?

  1. Use ASCI option on RECEIVE
  2. Use ASIS option on RECEIVE
  3. Use Unicode option on RECEIVE
  4. Use ASCII option on RECEIVE
Question 2 Multiple Choice (Single Answer)

When you compile a CICS program, the (pre)compiler puts an extra chunk of code. Where does it get included and that is it called?

  1. DFHEIBDK, DFHCOMMAREA
  2. DFHEIBLK, DFHCOMNAREA
  3. DFHEEBLK, DFHCOMMAREA
  4. DFHEIBLK, DFHCOMMAREA
Question 3 Multiple Choice (Single Answer)

In which table would you make an entry for a BMS map?

  1. RPT
  2. PCT
  3. PPT
  4. LCT
Question 4 Multiple Choice (Single Answer)

How do you read from a TSQ?

  1. Permanent Storage read command
  2. Transaction storage read command
  3. Temp storage read command
  4. None of the above
Question 5 Multiple Choice (Single Answer)

What is the utility used to copy data from one file to another ?

  1. IEBGENER
  2. DFSORT
  3. FILEAID
  4. All the above
Question 6 True/False

Can FILE-AID utility be used to sort the data in the file ?

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

Which control statements be used to reformat the file using DFSORT ?

  1. INREC and SORT FIELDS
  2. OUTREC and SORT FIELDS
  3. Only INREC
  4. Only OUTREC
  5. Both 1 and 2
  6. Both 3 and 4
Question 8 Multiple Choice (Multiple Answers)

What action SYSIN DD DUMMY will perform with FILE-AID Utility ?

  1. Create a new dummy dataset along with the output file which will be deleted after the job completes
  2. Throw an error
  3. The job will run but creates an empty output dataset
  4. Copy data from input to output
Question 9 Multiple Choice (Single Answer)

Which Utility is used to copy data from flat file to VSAM file ?

  1. IEFBR14
  2. IEBCOPY
  3. IDCAMS
  4. IEBGENER
Question 10 True/False

Utility IKJEFT01 is used to transfer the file ?

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

Mark all the valid JCL utilites.

  1. ICETOOL
  2. ICEMAN
  3. SYNCSORT
  4. SYSDCL
  5. IEFBR16
Question 12 True/False

State TRUE or FALSE. "File Status 42 corresponds to a CLOSE operation has been tried on file already closed."

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

When the WRITE Statement for a SAM File is executed, the associated SAM File must be opened in

  1. OUTPUT or EXTEND Mode
  2. OUTPUT Mode
  3. I-O Mode
  4. OUTPUT, I-O or EXTEND Mode
Question 14 Multiple Choice (Multiple Answers)

Which of the following are Data Manipulation Statements in COBOL?

  1. INSPECT (TALLYING)
  2. INSPECT (REPLACING or CONVERTING)
  3. SET
  4. ALTER
Question 15 Multiple Choice (Single Answer)

What will be the value of B after executing the below code snippet? 77 A PIC 9(4)V999 VALUE 9902.852. 77 B PIC 9(4)V9(2) VALUE 99.85. PROCEDURE DIVISION. MULTIPLY A BY 30.5 GIVING B ROUNDED STOP RUN.

  1. B will have 2
  2. B will have 0002000
  3. B will have 2662311
  4. Program will abend
Question 16 Multiple Choice (Single Answer)

What is the precedence rule (from highest to lowest) applied for a complex condition if parentheses are not used.

  1. Arithmetic, Relational, NOT, AND, OR
  2. Relational, Arithmetic, NOT, AND, OR
  3. Arithmetic, Relational, AND, OR, NOT
  4. Arithmetic, Relational, OR, AND, NOT
Question 17 Multiple Choice (Single Answer)

Which one of the following is not an integrity?

  1. Domain Integrity
  2. Entity Integrity
  3. Technology Integrity
  4. Referential Integrity
Question 18 Multiple Choice (Single Answer)

What is the function of a precompiler ?

  1. Extracts the SQL statements and place them into load.
  2. Extracts the SQL statements and place them into DBRM.
  3. Extracts the COBOL statements and place them into DBRM.
  4. Extracts the COBOL statements and place them into load.
Question 19 Multiple Choice (Single Answer)

How many Indexes can be built on a table ?

  1. No limit
  2. 4
  3. 15
  4. none
Question 20 Multiple Choice (Single Answer)

What is SPUFI ?

  1. SQL Process Used File Input.
  2. SQL Processing Using Format Input
  3. SQL Processing Using File Input
  4. SQL Processing Using File Information.