Tag: mainframe

Questions Related to mainframe

Take a look at the following PL/I program. Assume A, B, C, ... being PL/I instructions. In which order will they be executed?MYPROG : PROCEDURE OPTIONS (MAIN);

  1. A B Z E F Z X

  2. A B X Z E F G H Z X

  3. A B X Z E F Z G H Z

  4. A B X Z G H Z


Correct Option: D
  1. A. A colon (:) must precede all host variables in an SQL statement

  2. B. A semi colon (;) must precede all host variables in an SQL statement

  3. C. We can use any variable directly

  4. D. None


Correct Option: A

In the Procedure Division of a COBOL program, which of the following is Optional?

  1. (A) Sections

  2. (B) Paragraphs

  3. (C) Sentences

  4. (D) Statements.


Correct Option: A
  1. (A) Valid Key

  2. (B) Duplicate Key

  3. (C) Invalid Key

  4. (D) Empty VSAM file.


Correct Option: C
  1. (A) StartIF

  2. (B) Then

  3. (C) Goto

  4. (D) Else.


Correct Option: C
  1. (A) 9999

  2. (B) 999999

  3. (C) 9999999

  4. (D) 99999999


Correct Option: D