Tag: mainframe

Questions Related to mainframe

  1. File is opened for input and an attempt is made To write to it (or Logic error).

  2. Mismatch in LRECL or BLOCKSIZE or RECFM between your COBOL pgn and the JCL ( or the dataset label).

  3. Attempted to open a file that is already open.

  4. File not found.


Correct Option: A
  1. In the least significant bit. Bit is ON if -ve, OFF if +ve.

  2. In the most significant bit. Bit is ON if -ve, OFF if +ve.

  3. In the least significant bit. Bit is ON if +ve, OFF if -ve.

  4. In the most significant bit. Bit is ON if +ve, OFF if -ve.


Correct Option: B
  1. An un-initialized numeric item.

  2. Data exception(data items have invalid data).

  3. None of the above

  4. Both 1 and 2 are correct


Correct Option: D
  1. Scope terminator is used to mark the end of a verb

  2. Scope terminator is used to mark the end of a statement

  3. Both 1 and 2

  4. None of the above


Correct Option: C

How many subscripts or indexes are allowed for an OCCURS clause?

  1. 4

  2. 5

  3. 6

  4. 7


Correct Option: D
  1. Identification Division. Program-ID. Program-name.

  2. Identification Division. Program-ID. Program-name. Environment Division.

  3. Identification Division. Program-ID. Program-name. Environment Division. Data Division.

  4. Identification Division. Program-ID. Program-name. Environment Division. Data Division. Procedure Division.


Correct Option: A