Tag: mainframe

Questions Related to mainframe

  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

Some parameters have sub-parameters. These can be both positional or keyword sub-parameters. Suppose TU00001 is the programmer’s name, ATUT000 is the programmer's account number and it is a default value. Given this information, which statements are correct:

  1. //TU00001T JOB (ATUT000,,,,,,,,),TU00001,CLASS=7,MSGCLASS=X

  2. //TU00001T JOB (ATUT000),’TU00001’,CLASS=7,MSGCLASS=X

  3. //TU00001T JOB TU00001,’(ATUT000)’,CLASS=7,MSGCLASS=X

  4. //TU00001T JOB ,(ATUT000),CLASS=7,MSGCLASS=X


Correct Option: A,B
  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

The following GDG datasets exist: TBISUSR.TU00001.GDG.G0003V00 TBISUSR.TU00001.GDG.G0004V00 TBISUSR.TU00001.GDG.G0005V00 TBISUSR.TU00001.GDG.G0006V00 TBISUSR.TU00001.GDG.G0007V00 Which statement will always create: TBISUSR.TU00001.GDG.G0008V00 ?

  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
  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. &GROUP&DIV.&SUBJCRS.&TYPE&NMBR

  2. &GROUP&DIV..&SUBJ.CRS.&TYPE&NMBR

  3. &GROUP.&DIV..&SUBJ.CRS.&TYPE.&NMBR.

  4. &GROUP.&DIV..&SUBJ.CRS..&TYPE.&NMBR.


Correct Option: B,C

What is the function of DD DISP parameter?

  1. Tells the system what to do with the dataset following normal termination of the step

  2. Describes the status of the dataset

  3. Tells the system what to do with the dataset following abnormal termination of the step

  4. All of the above


Correct Option: D