0

mainframe Online Quiz - 32

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

KSDS AND RRDS FILES CAN BE INPUT RANDOMLY (DIRECTLY) BY

  1. PUT STATEMENT

  2. READ STATEMENT

  3. POINT STATEMENT

  4. GET STATEMENT


Correct Option: B

GENERATING A REPORT IS SIMPLE IN EASYTRIEVE.

  1. True

  2. False


Correct Option: A

What is the keyword sub parameter that can be used in the DD operand to repeat the unit specification that is already mentioned for a dataset in any previous DD statements?

  1. UNIT=LIKE ddname

  2. UNIT=SER ddname

  3. UNIT=AFF=ddname

  4. UNIT=*.& ddname


Correct Option: C

A maximum of 255 steps can be included in a single JCL.

  1. True

  2. False


Correct Option: A

Which of the following are not allowed in procedures in jcl?

  1. JOBLIB

  2. STEPLIB

  3. null statement(//)

  4. DD


Correct Option: A,B,C

Which TIME parameter will allow the step to run for unlimited amount of CPU time?

  1. 1440

  2. MAXIMUM

  3. NOLIMIT

  4. 32767


Correct Option: C
  1. Operational exception

  2. Address exception

  3. Data exception

  4. Numeric exception


Correct Option: C

What abend is issued when the system cannot find the member in the indicated dataset in the JCL?

  1. SOC7

  2. S013-20

  3. S013-18

  4. SOC4


Correct Option: C

Which parameter holds the job from execution until it is released by the operator?

  1. TYPRUN=HOLD

  2. TYPRUN=SCAN

  3. TYPRUN=CHECK

  4. TYPRUN


Correct Option: A

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

What are the correct values for the DSN parameter of a temporary data set? (2 answers)

  1. &NAME&(TEMP)

  2. &&TEMP(NAME)

  3. &&NAME

  4. &NAME


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

What is correct?

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

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

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

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


Correct Option: 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 parameter can not be used on a JOB statement:

  1. MSGCLASS

  2. COND

  3. MGMTCLAS

  4. NOTIFY


Correct Option: C

Which statements concerning the JCLLIB statement are true? (2 answers)

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

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

AI Explanation

To answer this question, we need to understand the syntax and rules of using conditional expressions with an IF-THEN-ELSE-ENDIF construction.

The IF-THEN-ELSE-ENDIF construction is used in programming languages to make decisions based on a condition. It follows the syntax:

IF condition THEN statement(s) ELSE statement(s) ENDIF

The condition in the IF statement is a conditional expression that evaluates to either true or false.

Let's go through each option to understand why it can or cannot be used with an IF-THEN-ELSE-ENDIF construction:

A. STEP.RC NE 8 - This option can be used with an IF-THEN-ELSE-ENDIF construction because it is a valid conditional expression. It checks if the value of the STEP.RC variable is not equal to 8.

B. ABEND = FALSE - This option can be used with an IF-THEN-ELSE-ENDIF construction because it is a valid conditional expression. It checks if the value of the ABEND variable is equal to false.

C. STEP.CC = U4038 - This option cannot be used with an IF-THEN-ELSE-ENDIF construction because it is missing the comparison operator. The correct syntax for this condition would be STEP.CC EQ U4038. Therefore, this option is incorrect.

D. STEP.RUN EQ TRUE - This option can be used with an IF-THEN-ELSE-ENDIF construction because it is a valid conditional expression. It checks if the value of the STEP.RUN variable is equal to true.

The correct answer is C. STEP.CC = U4038. This option is incorrect because it is missing the comparison operator.

Therefore, the conditional expression that cannot be used with an IF-THEN-ELSE-ENDIF construction is C. STEP.CC = U4038.

  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 statements.

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

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


Correct Option: B

Which of the following are directly controlled by JCL statements: (2 answers)

  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 of the following equations are correct? (2 answers)

  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 answer this question, we need to understand the syntax and meaning of the DISP parameter in JCL (Job Control Language).

The DISP parameter is used to specify the disposition of a dataset. It determines what action should be taken with the dataset after the job step completes. The DISP parameter can have up to three subparameters, separated by commas:

  1. The first subparameter represents the primary allocation.
  2. The second subparameter represents the secondary allocation.
  3. The third subparameter represents the disposition of the dataset.

Let's go through each option to determine whether it is correct or incorrect:

Option A) DISP=(,PASS) is equivalent to DISP=(NEW,PASS,KEEP) This option is incorrect because DISP=(,PASS) does not have a primary allocation specified, whereas DISP=(NEW,PASS,KEEP) has a primary allocation specified as "NEW." Therefore, these two expressions are not equivalent.

Option B) DISP=(,,KEEP) is equivalent to DISP=(NEW,DELETE,KEEP) This option is correct because both DISP expressions have the same primary allocation ("NEW") and disposition ("KEEP"). The secondary allocation is not specified in either expression, so it is not a factor in determining equivalence.

Option C) DISP=(,,CATLG) is equivalent to DISP=(OLD,CATLG,CATLG) This option is incorrect because DISP=(,,CATLG) does not have a primary allocation specified, whereas DISP=(OLD,CATLG,CATLG) has a primary allocation specified as "OLD." Additionally, the disposition is different in the two expressions, with DISP=(,,CATLG) specifying "CATLG" as the disposition, whereas DISP=(OLD,CATLG,CATLG) specifies "OLD" as the disposition. Therefore, these two expressions are not equivalent.

Option D) DISP=(OLD,,) is equivalent to DISP=(OLD,KEEP,KEEP) This option is correct because both DISP expressions have the same primary allocation ("OLD") and the same secondary allocation ("KEEP"). The disposition is not specified in the first expression (DISP=(OLD,,)), so it is assumed to be "KEEP" by default. Therefore, these two expressions are equivalent.

The correct answers are B) DISP=(,,KEEP) is equivalent to DISP=(NEW,DELETE,KEEP) and D) DISP=(OLD,,) is equivalent to DISP=(OLD,KEEP,KEEP).

- Hide questions