0

mainframe Online Quiz - 20

Description: mainframe Online Quiz - 20
Number of Questions: 20
Created by:
Tags: mainframe
Attempted 0/20 Correct 0 Score 0
  1. The passing of job control information to the Job Entry Subsystem

  2. The addressing of input resources

  3. The performance of calculations

  4. The sending of an email to the person who submitted the job


Correct Option: A,B

Which statements concerning the JCLLIB statement are true?

  1. There is either a JCLLIB statement for the entire JOB, or a separate one for each EXEC

  2. A JCLLIB statement can not have a statement name.

  3. There can only be one JCLLIB statement per JOB.

  4. A JCLLIB statement must be coded before the first EXEC statement.


Correct Option: C,D
  1. Under no circumstances must a DD statement precede an EXEC statement

  2. The OPERATION JOB can be coded in position 4.

  3. An OPERATION can be coded beyond position 72, as long as it starts before position 72

  4. A JCL OPERATION must be followed and preceded by at least one blank.


Correct Option: D
  1. When TIME is added to a JOB statement, the entire job run time is limited to that amount

  2. When REGION=0 is coded, the job will not execute due to the fact that no working storage

  3. The COND parameter on JOB level will place the same condition on every EXEC statement,

  4. TYPRUN=SCAN means that the entire JCL script will be checked for syntax and value


Correct Option: A,C

When I want a jobstep to be executed only if the previous jobstep has a return code of strictly less than 8, I should add...

  1. COND=(8,LE)

  2. COND=(8,GE)

  3. COND=(8,LT)

  4. COND=(8,GT)


Correct Option: A

AI Explanation

To answer this question, you need to understand the COND parameter in job control language (JCL) statements.

The COND parameter is used to specify a condition that determines whether a jobstep or job is to be executed. It takes the form of COND=(expression,condition), where expression is the condition to be evaluated and condition is the comparison operator.

In this case, you want the jobstep to be executed only if the previous jobstep has a return code of strictly less than 8. The correct option is A) COND=(8,LE).

Explanation for each option:

Option A) COND=(8,LE) - This option is correct because it specifies that the jobstep should be executed if the return code of the previous jobstep is less than or equal to 8. Since you want it to be strictly less than 8, this condition will be satisfied.

Option B) COND=(8,GE) - This option is incorrect because it specifies that the jobstep should be executed if the return code of the previous jobstep is greater than or equal to 8. This is the opposite of what you want.

Option C) COND=(8,LT) - This option is incorrect because it specifies that the jobstep should be executed if the return code of the previous jobstep is less than 8. This condition will not be satisfied if the return code is exactly 8.

Option D) COND=(8,GT) - This option is incorrect because it specifies that the jobstep should be executed if the return code of the previous jobstep is greater than 8. This condition will not be satisfied if the return code is less than or equal to 8.

Therefore, the correct answer is A) COND=(8,LE). This option ensures that the jobstep is executed only if the previous jobstep has a return code of strictly less than 8.

Consider the following: //TU00001T JOB ATUT000,TU00001,CLASS=7,MSGCLASS=X,TIME=(,10) //STEP1 EXEC PGM=PROGRAM1,TIME=(,6) //STEP2 EXEC PGM=PROGRAM2 //STEP3 EXEC PGM=PROGRAM3,TIME=(,15) Which of the following statements are true:

  1. Step 1 can use 6 seconds of CPU time.

  2. Step 2 has no time limitations.

  3. Step 3 can use 15 seconds of CPU time.

  4. Each step is limited to its specifically mentioned time, but the entire job can only use 10


Correct Option: A,D

AI Explanation

To answer this question, we need to understand the syntax and meaning of the given JCL (Job Control Language) statement.

In the given JCL statement, each step is specified with an EXEC statement followed by the PGM (Program) parameter. The TIME parameter is used to specify the maximum CPU time allowed for each step. If the TIME parameter is not specified, the default time limit is used.

Let's go through each option to understand why it is correct or incorrect:

Option A) Step 1 can use 6 seconds of CPU time. This option is correct because the TIME parameter for Step 1 is specified as (,6), which means that Step 1 is limited to 6 seconds of CPU time.

Option B) Step 2 has no time limitations. This option is incorrect because there is no TIME parameter specified for Step 2. Without a TIME parameter, the default time limit will be used, which is usually a system-defined value.

Option C) Step 3 can use 15 seconds of CPU time. This option is incorrect because the TIME parameter for Step 3 is specified as (,15), which means that Step 3 is limited to 15 seconds of CPU time.

Option D) Each step is limited to its specifically mentioned time, but the entire job can only use 10. This option is correct because the TIME parameter for the entire job is specified as (,10), which means that the entire job is limited to 10 seconds of CPU time. Each step can use its specifically mentioned time limit, but the total CPU time used by all the steps combined cannot exceed the time limit specified for the job.

Therefore, the correct answer is A,D.

What is correct?

  1. A REGION parameter on an EXEC statement, overrides the REGION parameter on the JOB

  2. A REGION parameter on an EXEC statement, limits the space available for that step, but

  3. A REGION parameter on an EXEC statement, is only taken into consideration if there is no

  4. The sum of all REGION parameters on EXEC statements, must be equal to the REGION


Correct Option: C

Which of the following concerning the COND parameter are true on EXEC statement level?

  1. The COND parameter always indicates that if its condition is met, the step is NOT executed.

  2. When adding the COND parameter to an EXEC statement that calls a procedure, this COND

  3. With the COND parameter, we can only check return codes.

  4. The COND parameter can check the return codes of multiple steps, but as soon as one of


Correct Option: B,D

What are the correct values for the DSN parameter of a temporary data set?

  1. &NAME&(TEMP)

  2. &&TEMP(NAME)

  3. &&NAME

  4. &NAME


Correct Option: B,C

When to use DISP=MOD?

  1. For both sequential and partitioned datasets to be extended or created.

  2. Only for existing datasets to be extended

  3. For all secured sequential datasets to be extended

  4. Only for sequential datasets to be extended or created.


Correct Option: D

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

AI Explanation

To determine which of the given equations are correct, let's analyze each option one by one:

Option A) DISP=(,PASS) is equivalent to DISP=(NEW,PASS,KEEP) This option is incorrect. In the first equation, DISP=(,PASS), the first parameter is empty, indicating that the dataset is not being changed. However, in the second equation, DISP=(NEW,PASS,KEEP), the first parameter is "NEW", indicating that the dataset is being created or replaced. Therefore, the two equations are not equivalent.

Option B) DISP=(,,KEEP) is equivalent to DISP=(NEW,DELETE,KEEP) This option is correct. In both equations, DISP=(,,KEEP) and DISP=(NEW,DELETE,KEEP), the third parameter is "KEEP", indicating that the dataset is being kept. The first and second parameters are not relevant to whether the equations are equivalent. Therefore, the two equations are equivalent.

Option C) DISP=(,,CATLG) is equivalent to DISP=(OLD,CATLG,CATLG) This option is incorrect. In the first equation, DISP=(,,CATLG), the third parameter is "CATLG", indicating that the dataset is being cataloged. However, in the second equation, DISP=(OLD,CATLG,CATLG), the third parameter is "CATLG" again, indicating that the dataset is being cataloged twice. Therefore, the two equations are not equivalent.

Option D) DISP=(OLD,,) is equivalent to DISP=(OLD,KEEP,KEEP) This option is correct. In both equations, DISP=(OLD,,) and DISP=(OLD,KEEP,KEEP), the first parameter is "OLD", indicating that the dataset is being retained. The second and third parameters are not relevant to whether the equations are equivalent. Therefore, the two equations are equivalent.

Therefore, the correct equations are B) DISP=(,,KEEP) is equivalent to DISP=(NEW,DELETE,KEEP) and D) DISP=(OLD,,) is equivalent to DISP=(OLD,KEEP,KEEP).

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

Which of the following DD statements to create a new data set is correctly written?

  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

Which parameter can not be used on a JOB statement

  1. MSGCLASS

  2. COND

  3. MGMTCLAS

  4. NOTIFY


Correct Option: C

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

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

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) A concatenation of datasets can be used for input, to use both DD entries describing sequential datasets and DD. This option is correct because concatenating datasets allows you to combine multiple datasets into one, and you can use DD (Data Definition) entries to describe these sequential datasets as input.

Option B) A concatenation of datasets can be used to write multiple output datasets. This option is incorrect because concatenating datasets is typically used for combining datasets as input, not for writing multiple output datasets.

Option C) A concatenation of datasets can contain a dummy dataset in the input, which will indicate the end of the input. This option is correct because you can include a dummy dataset in the concatenation of datasets to indicate the end of the input. This is useful when reading the concatenated datasets, as it provides a way to determine when to stop reading.

Option D) A concatenation of datasets, stored on different device types, cannot be used for input. This option is incorrect because a concatenation of datasets can be used for input regardless of the device types on which the datasets are stored. The device types do not restrict the usage of concatenated datasets as input.

The correct answers are A and C. These options are correct because a concatenation of datasets can be used for input, allowing you to use both DD entries describing sequential datasets and include a dummy dataset to indicate the end of the input.

When calling a procedure we can change - in different ways - this procedure. Which is the most complete statement?

  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

Consider the following: // SET GROUP=TBIS,DIV=USR,SUBJ=JCL,TYPE=DATA,NMBR=1 Which of the following structures containing symbolic parameters will result in: TBISUSR.JCLCRS.DATA1?

  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

AI Explanation

To answer this question, we need to understand how symbolic parameters work in JCL (Job Control Language).

In JCL, symbolic parameters are placeholders that can be replaced with actual values during job execution. The structure of symbolic parameters is typically denoted by an ampersand (&) followed by the parameter name.

Let's go through each option to determine which ones will result in the desired output of "TBISUSR.JCLCRS.DATA1":

Option A) &GROUP&DIV.&SUBJCRS.&TYPE&NMBR This option will result in "TBISUSRJCLCRSDATANMBR" because there are no period (.) separators between the symbolic parameters.

Option B) &GROUP&DIV..&SUBJ.CRS.&TYPE&NMBR This option will result in "TBISUSR.JCLCRS.DATA1" because the periods (.) are correctly placed to separate the symbolic parameters.

Option C) &GROUP.&DIV..&SUBJ.CRS.&TYPE.&NMBR. This option will result in "TBIS.USR.JCLCRS..DATA.1." because there are extra periods (.) between the symbolic parameters.

Option D) &GROUP.&DIV..&SUBJ.CRS..&TYPE.&NMBR. This option will result in "TBIS.USR.JCLCRS.DATA.1." because there are extra periods (.) between the symbolic parameters.

Therefore, the correct answers are B and C because they will result in the desired output of "TBISUSR.JCLCRS.DATA1".

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
- Hide questions