Mainframe JCL and COBOL Quiz
Test your knowledge of mainframe Job Control Language (JCL) and COBOL programming concepts including job statements, DD statements, data division, file handling, and table operations.
Questions
Which of the following files can be OPENed in all the 4 modes? The four modes are INPUT, I-O, OUTPUT and EXTEND
- INDEXED
- RELATIVE
- SEQUENTIAL
- All of the above
How is sign stored in Packed Decimal fields?
- Sign is stored as a hex value in the last nibble of the storage.
- Sign is over punched with the numeric value stored in the last nibble.
- Sign is stored in the most significant bit.
- None of the above
What does the INITIALIZE verb do?
- Alphabetic, Alphanumeric fields & alphanumeric edited items are set to SPACES
- Numeric, Numeric edited items set to ZERO.
- FILLER , OCCURS DEPENDING ON items left untouched.
- All the Above.
How many subscripts or indexes are allowed for an OCCURS clause?
- 7
- 6
- 5
- 4
Which of the following is False?
- Subscript refers to the array occurrence while index is the displacement (in no of bytes) from the beginning of the array.
- An index can only be modified using PERFORM, SEARCH & SET.
- Need to have index for a table in order to use SEARCH, SEARCH ALL.
- None of the above
X(100) field can be redefined with a field of X(200)?(True/False)
- True
- False
How many bytes does a S9(7) COMP-3 field occupy ?
- 7 bytes
- 6 bytes
- 5 bytes
- 4 bytes
- In COBOL , the File format : ORGANISATION IS SEQUENTIAL RECORDING MODE IS F BLOCK CONTAINS 0 . Is used to reference which file ?
- Fixed Block file
- Fixed Unblock file
- Variable Block file
- Variable Unblock file
Level 66 used for?
- For Renames Clause
- For Condition Names
- Elementary level item. Cannot be subdivisions of other items (cannot be qualified), nor can they be subdivided themselves.
- All of the above
How many sections are there in Data Division?
- Six
- Seven
- Four
- Three
- ------ will Defines libraries used for an entire job or one job step?
- Joblib
- Proclib
- Jcllib
- Steplib
2.------- Passes control information to the job step via the linkage section in the program?
- parm=value
- parm=’value’
- parm(=value)
- parm=(value)
- --------- Copies a single DD statement or group of DD statements into a job stream?
- Copy statement
- JCL statement
- Include statement
- None of the above
4.-------- Used for storage, needed only for the duration of the job?
- Storage dataset
- Temporary dataset
- Both
- None of the above
5.--------- Specifies conditions for executing subsequent job steps. Can be used in the Job statement or the EXEC statement?
- JCL checking
- Job checking
- Conditional checking
- EXEC checking
6.--------- Field contains only an asterisk?
- Operation field
- Parameter field
- Label field
- Comments field
- Identify the special DD name?
- JOBABEND
- JCLABEND
- SYSABEND
- STEPABEND
9.--------- Statement is used to mark the end of an in-stream procedure?
- EXEC statement
- CNTL statement
- PROC statement
- PEND statement
- A JCL statement consists of one or more ---- bytes of records?
- 60
- 80
- 100
- 120
-------- will Defines libraries used for an entire job or one job step?
- Joblib
- Proclib
- JCLlib
- Steplib