Tag: mainframe

Questions Related to mainframe

Can JUSTIFIED be used for all data types?

  1. True

  2. False


Correct Option: B

In which mode must you open a file to update the records in the file?

  1. Input

  2. Output

  3. Extended

  4. I-O


Correct Option: D

Read the functionality below and identify the function in DPS: "This command clears your workspace, but does not affect the form library."

  1. DEL

  2. ERA

  3. SAV

  4. REP


Correct Option: A

What is the PIC representation for +123.876?

  1. PIC S9(3).999

  2. PIC 9(3).999

  3. PIC S9(3)V999

  4. PIC 9(3)V999


Correct Option: C

AI Explanation

To represent the number +123.876 in PIC (Picture) format, we need to consider the sign, the integer part, and the fractional part.

The options given are: A. PIC S9(3).999 B. PIC 9(3).999 C. PIC S9(3)V999 D. PIC 9(3)V999

Let's analyze each option:

Option A) PIC S9(3).999 - This option represents a signed numeric field with a length of 3 digits for the integer part and 3 decimal places for the fractional part. However, it does not account for the sign of the number.

Option B) PIC 9(3).999 - This option represents an unsigned numeric field with a length of 3 digits for the integer part and 3 decimal places for the fractional part. However, it does not account for the sign of the number.

Option C) PIC S9(3)V999 - This option represents a signed numeric field with a length of 3 digits for the integer part, a decimal point, and 3 decimal places for the fractional part. The "V" represents the decimal point. This option correctly represents the number +123.876.

Option D) PIC 9(3)V999 - This option represents an unsigned numeric field with a length of 3 digits for the integer part, a decimal point, and 3 decimal places for the fractional part. However, it does not account for the sign of the number.

The correct answer is C) PIC S9(3)V999. This option correctly represents the number +123.876 by considering the sign, integer part, and fractional part.

Which option is used to create the form layout ?

  1. A

  2. Z

  3. L

  4. W


Correct Option: C
  1. Logical- FILE-1, Physical- INFILE

  2. Logical- INFILE, Physical- FILE-1

  3. Logical- None, Physical-ASSIGN

  4. None of them


Correct Option: A

Identify which of the following is not a library commands?

  1. MOD

  2. NEW

  3. REP

  4. OLD


Correct Option: A

Linkage section is present in which division?

  1. Identification

  2. Procedure

  3. Data

  4. Environment


Correct Option: C

the functionality below and identify the function in DPS: “Saves a changed form in an area of storage where a copy currently exists”.

  1. SAV

  2. MOD

  3. REP

  4. OLD


Correct Option: C