Mainframe Programming: COBOL, CICS, and REXX
Test your knowledge of mainframe programming languages and systems including COBOL data structures and file operations, CICS/BMS map development, and REXX programming commands.
Questions
are the two outputs created as a result of generation of a map?
- The load module and DBRMLIB
- The map load and DBRMLIB
- The map copybook and the load module
- The MAPLIB and loadlib
How do you use extended attributes?
- Define EXTATT=YES and the correct terminal type.
- Define EXTDATT=YES and the correct terminal type.
- Define EXTATRB=YES and the correct terminal type
- Define XTDATRB=YES and the correct terminal type.
In which table would you make an entry for a BMS map?
- RPT
- PCT
- PPT
- LCT
What is CICS ?
- Customer Interaction Control System
- Consumer Information Control System
- Customer Information Control System
- Consumer Interaction Control System
What is the difference between physical map and symbolic map?
- The physical map is the load module and the symbolic map is the data structure
- The physical map is the data structure and the symbolic map is the load module
- Physical map is mapped with addresses and the symbolic map is the logical one.
- There is no difference
What are the 3 working storage fields used for every field on the map?
- Length, attribute and output field
- Length, no.of fields and output field
- Length, attribute and input/output field
- Length, attribute and input field
X(100) field can be redefined with a field of X(200)?(True/False)
- True
- False
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
How many bytes does a S9(7) COMP-3 field occupy ?
- 7 bytes
- 6 bytes
- 5 bytes
- 4 bytes
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
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.
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
- 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
How many sections are there in Data Division?
- Six
- Seven
- Four
- Three
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 many subscripts or indexes are allowed for an OCCURS clause?
- 7
- 6
- 5
- 4
What is the code for the error condition "Empty File"?
- 10
- 35
- 23
- 28
Which variable will have the value returned by a subroutine once it completes?
- RC
- RETVAL
- RESULT
- RV
Which TSO command is used to read / write a file?
- ALLOC
- FREE
- SUBMIT
- EXECIO
Which of the following can be used to read and write from a file? Choose all that apply
- DATA STACK
- QUEUE
- COMPOUND VARIABLE
- SYMBOLIC VARIABLE