0

mainframe Online Quiz - 53

Description: mainframe Online Quiz - 53
Number of Questions: 20
Created by:
Tags: mainframe
Attempted 0/20 Correct 0 Score 0

Which of the following is true ?

  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

Which of the following statements are true for parameters coded on the JOB statement?

  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

Complete correctly: 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 concept of condition codes in job control language (JCL).

In JCL, a condition code is a numeric value that represents the success or failure of a jobstep. A return code of 0 typically indicates successful execution, while a non-zero return code indicates an error or failure.

To specify a condition for a jobstep to be executed based on the return code of the previous jobstep, you need to use the COND parameter in JCL.

In this case, you want the jobstep to be executed only if the previous jobstep has a return code of strictly less than 8. To achieve this, you need to use the COND parameter with the condition code (8,LE), where LE stands for less than or equal to.

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

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. This satisfies the condition of strictly less than 8.

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 does not satisfy the condition of strictly less than 8.

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 does not satisfy the condition of strictly less than 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 does not satisfy the condition of strictly less than 8.

The correct answer is Option A) COND=(8,LE). This option is correct because it specifies the desired condition of strictly less than 8 for the jobstep to be executed.

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

Which of the following are directly controlled by JCL statements ?

  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

Which of the following is true?

  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

Which of the following statements are true for parameters coded on the JOB statement?

  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

Complete correctly: 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

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

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: A

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

AI Explanation

To answer this question, we need to understand the format and usage of the DSN parameter for a temporary data set.

The DSN parameter is used to specify the name and characteristics of a data set in a JCL (Job Control Language) statement. Temporary data sets are typically used for temporary storage during the execution of a job and are deleted automatically after the job completes.

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

Option A) &NAME&(TEMP) - This option is incorrect because it does not follow the correct format for a temporary data set. The correct format for specifying a temporary data set is &&TEMP(NAME), where TEMP is the generic name and NAME is the specific name.

Option B) &&TEMP(NAME) - This option is correct because it follows the correct format for a temporary data set. The double ampersand (&&) indicates that it is a temporary data set, TEMP is the generic name, and NAME is the specific name.

Option C) &&NAME - This option is correct because it follows the correct format for a temporary data set. The double ampersand (&&) indicates that it is a temporary data set, and NAME is the specific name.

Option D) &NAME - This option is incorrect because it does not follow the correct format for a temporary data set. The double ampersand (&&) is missing, which indicates that it is not a temporary data set.

The correct answer is Option B and Option C. These options are correct because they follow the correct format for specifying a temporary data set in the DSN parameter.

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

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

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