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
Questions
What do you do if you do not want characters entered by the user to be folded to uppercase?
- Use ASCI option on RECEIVE
- Use ASIS option on RECEIVE
- Use Unicode option on RECEIVE
- Use ASCII option on RECEIVE
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?
- DFHEIBDK, DFHCOMMAREA
- DFHEIBLK, DFHCOMNAREA
- DFHEEBLK, DFHCOMMAREA
- DFHEIBLK, DFHCOMMAREA
In which table would you make an entry for a BMS map?
- RPT
- PCT
- PPT
- LCT
How do you read from a TSQ?
- Permanent Storage read command
- Transaction storage read command
- Temp storage read command
- None of the above
What is the utility used to copy data from one file to another ?
- IEBGENER
- DFSORT
- FILEAID
- All the above
Can FILE-AID utility be used to sort the data in the file ?
- True
- False
Which control statements be used to reformat the file using DFSORT ?
- INREC and SORT FIELDS
- OUTREC and SORT FIELDS
- Only INREC
- Only OUTREC
- Both 1 and 2
- Both 3 and 4
What action SYSIN DD DUMMY will perform with FILE-AID Utility ?
- Create a new dummy dataset along with the output file which will be deleted after the job completes
- Throw an error
- The job will run but creates an empty output dataset
- Copy data from input to output
Which Utility is used to copy data from flat file to VSAM file ?
- IEFBR14
- IEBCOPY
- IDCAMS
- IEBGENER
Utility IKJEFT01 is used to transfer the file ?
- True
- False
Mark all the valid JCL utilites.
- ICETOOL
- ICEMAN
- SYNCSORT
- SYSDCL
- IEFBR16
State TRUE or FALSE. "File Status 42 corresponds to a CLOSE operation has been tried on file already closed."
- True
- False
When the WRITE Statement for a SAM File is executed, the associated SAM File must be opened in
- OUTPUT or EXTEND Mode
- OUTPUT Mode
- I-O Mode
- OUTPUT, I-O or EXTEND Mode
Which of the following are Data Manipulation Statements in COBOL?
- INSPECT (TALLYING)
- INSPECT (REPLACING or CONVERTING)
- SET
- ALTER
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.
- B will have 2
- B will have 0002000
- B will have 2662311
- Program will abend
What is the precedence rule (from highest to lowest) applied for a complex condition if parentheses are not used.
- Arithmetic, Relational, NOT, AND, OR
- Relational, Arithmetic, NOT, AND, OR
- Arithmetic, Relational, AND, OR, NOT
- Arithmetic, Relational, OR, AND, NOT
Which one of the following is not an integrity?
- Domain Integrity
- Entity Integrity
- Technology Integrity
- Referential Integrity
What is the function of a precompiler ?
- Extracts the SQL statements and place them into load.
- Extracts the SQL statements and place them into DBRM.
- Extracts the COBOL statements and place them into DBRM.
- Extracts the COBOL statements and place them into load.
How many Indexes can be built on a table ?
- No limit
- 4
- 15
- none
What is SPUFI ?
- SQL Process Used File Input.
- SQL Processing Using Format Input
- SQL Processing Using File Input
- SQL Processing Using File Information.