Tag: mainframe

Questions Related to mainframe

  1. Which clause can be used instead of checking for FILE STATUS = 10?
  1. RECORD NOT FOUND

  2. AT END

  3. DUPLICATE RECORD

  4. END OF FILE


Correct Option: B
  1. SEQUENTIAL

  2. DYNAMIC

  3. INDEX

  4. ALL OF THE ABOVE


Correct Option: D
  1. What level is used for RENAMES clause?
  1. 66

  2. 77

  3. 88

  4. 90


Correct Option: A
  1. WORKING-STORAGE

  2. FILE SECTION

  3. CONTROL SECTION

  4. LINKAGE SECTION


Correct Option: B
Explanation:

In COBOL programming, the short description of a file is typically given in the FILE SECTION.

Option A) WORKING-STORAGE - This section is used to define variables and data items that are used within the program for temporary storage or calculations. Option B) FILE SECTION - This section is used to define the files that the program will read from or write to. It includes the short description of the file, along with details such as the file organization, access mode, and record structure. Option C) CONTROL SECTION - This section is used to define the logic and control structures of the program, such as the PROCEDURE DIVISION and the various paragraphs, sections, and statements within it. Option D) LINKAGE SECTION - This section is used to define data items that are passed between programs in a COBOL program.

The correct answer is B) FILE SECTION. This is where the short description of a file is typically given in COBOL programming.

"THE DATE, TIME, OR TIMESTAMP VALUE value IS INVALID" , What is SQLCODE for this statement

  1. -180

  2. -504

  3. -805

  4. -545


Correct Option: D

State TRUE or FALSE A new copy of the load module is not required when program is not modified

  1. True

  2. False


Correct Option: A

Break point can be set in the program by

  1. Inserting any label in the required line number section

  2. Inserting a letter ‘.B’ in the required line number section

  3. Inserting a letter ‘ S’ in the required line number section

  4. Inserting a letter ‘ B’ in the required line number section


Correct Option: D