Tag: mainframe

Questions Related to mainframe

Consider the following piece of code: IF NOT INPUT-EOF IF INPUT-REC-TYPE = '55' PERFORM 2100-PROCESS-WTN ELSE NEXT SENTENCE END-IF ADD +1 TO INPUT-COUNT. PERFORM TEST-1 If the value INPUT-REC-TYPE = '00' then what will happen to the value of INPUT-COUNT?

  1. 01

  2. Will not change

  3. Will change

  4. 56


Correct Option: B

The SYNCHRONIZED LEFT / RIGHT clause which specifies alignment of elementary data item on storage boundary can be specified for data items defined with USAGE IS INDEX.

  1. True

  2. False


Correct Option: A

ASCENDING/DESCENDING KEY data item cannot be floating point items.

  1. True

  2. False


Correct Option: A

For successful execution of REWRITE stmt, the direct access file must be opened in _____ mode.

  1. I

  2. O

  3. I-O

  4. O-I


Correct Option: C

BLANK WHEN ZERO must not be specified for 66 or 88 level variables or signed fields.

  1. True

  2. False


Correct Option: A