Tag: mainframe

Questions Related to mainframe

In what mode the file should be OPENed to Rewrite/ Delete records in a File?

  1. OUTPUT

  2. EXTEND

  3. I-O

  4. INPUT


Correct Option: C

02 A PIC 9(5)V99 VALUE 234.56. MOVE A TO B DISPLAY B If we want to display the content of A as "$ 234.56-", how should we declare the variable B?

  1. PIC $ZZZZ9.99-

  2. PIC $$$$9V99-

  3. PIC -$9(6).99

  4. PIC $9(6).99-


Correct Option: A
  1. All the woking staorage variables in ProgramB will be initialized when the Program B execution is completed.

  2. Nothing will happen. It is just coded to indicate the end of CALL statement.

  3. Areas A, B and C will be initialized when the Program B execution is completed.

  4. None of the above


Correct Option: A

A COBOL Program (Program A) calls Program B. What will happen, If STOP RUN is issued at the end of Program B?

  1. The Control will come back to Program A.

  2. The control will NOT come back to Program A and Program B will terminates immediately at the STOP RUN Statement.

  3. Program B abends abnormally.

  4. Infinite Loop


Correct Option: B

What abend will be hit when a COBOL program is trying to move Alphabetic Data into Numeric fields?

  1. S0C1

  2. S0C4

  3. S0C7

  4. S0CB


Correct Option: C
  1. Yes, Always Possible

  2. Yes, Only when the COBOL program contains CICS and Batch common verbs/statements

  3. No. Never Possible

  4. None of the above


Correct Option: B

we can display the index variable like normal cobol variable

  1. True

  2. False


Correct Option: B