Tag: mainframe

Questions Related to mainframe

Which of the following equations are correct?

  1. DISP=(,PASS) is equivalent to DISP=(NEW,PASS,KEEP)

  2. DISP=(,,KEEP) is equivalent to DISP=(NEW,DELETE,KEEP)

  3. DISP=(,,CATLG) is equivalent to DISP=(OLD,CATLG,CATLG)

  4. DISP=(OLD,,) is equivalent to DISP=(OLD,KEEP,KEEP)


Correct Option: B,D

Indicate the correct answers about the OUTPUT statement?

  1. Multiple OUTPUT statements can be coded for 1 single job step.

  2. The OUTPUT statement can be used to control the authorisation of the submitting user,

  3. The OUTPUT statement at job level must be coded before the JOB statement.

  4. The OUTPUT statement can not override the MSGCLASS parameter on the JOB statement.


Correct Option: A,D
  1. //DD1 DD DSN=TBISUSR.TU00001.DATA1,DISP=(NEW,KEEP),DSORG=PS,LRECL=80,

  2. //DD2 DD DSN=TBISUSR.TU00001.DATA2(MBR1),DISP=(NEW,KEEP),DSORG=PO,

  3. //DD3 DD DSN=TBISUSR.TU00001.DATA3(MBR2),DISP=(NEW,KEEP),DSORG=PO,

  4. //DD4 DD DSN=TBISUSR.TU00001.DATA4,DISP=(NEW,KEEP),DSORG=PS,


Correct Option: C,D
  1. //DD1 DD DSN=TBISUSR.TU00001.GDG(+1),DISP=(NEW,CATLG),LRECL=80,

  2. //DD1 DD DSN=TBISUSR.TU00001.GDG(+1),DISP=SHR

  3. //DD1 DD DSN=TBISUSR.TU00001.GDG(8),DISP=(NEW,CATLG),LRECL=80,

  4. //DD1 DD DSN=TBISUSR.TU00001.GDG(8),DISP=SHR


Correct Option: A

Which of the following conditional expressions can not be used with an IF-THEN-ELSE-ENDIF construction?

  1. STEP.RC NE 8

  2. ABEND = FALSE

  3. STEP.CC = U4038

  4. STEP.RUN EQ TRUE


Correct Option: C

Indicate the correct answers: A concatenation of datasets...

  1. ... can be used for input, to use both DD entries describing sequential datasets and DD

  2. ... can be used to write multiple output datasets.

  3. ... can contain a dummy data set in the input, which will indicate the end of the input.

  4. ... stored on different device types, can not be used for input.


Correct Option: A,C
  1. We can override parameters on EXEC statements and add DD statements.

  2. We can override, nullify and add parameters on all statements and add DD and/or OUTPUT

  3. We can add and override parameters to all statements, but can only nullify parameters

  4. We can nullify, override and add parameters to all statements, but can only add DD statements.


Correct Option: B
  1. less than (

  2. greater than (>)

  3. less than or equal to (<=)

  4. Any of the above.


Correct Option: D