0

mainframe Online Quiz - 37

Description: mainframe Online Quiz - 37
Number of Questions: 20
Created by:
Tags: mainframe
Attempted 0/20 Correct 0 Score 0
  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? (2 answers)

  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

AI Explanation

To answer this question, we need to understand the purpose and usage of the COND parameter on EXEC statements.

Option A) The COND parameter always indicates that if its condition is met, the step is NOT executed. This statement is incorrect. The COND parameter allows you to specify a condition that determines whether the step should be executed or not. If the condition is met, the step is executed. If the condition is not met, the step is bypassed.

Option B) When adding the COND parameter to an EXEC statement that calls a procedure, this COND This statement is correct. When adding the COND parameter to an EXEC statement that calls a procedure, the COND parameter allows you to specify a condition that determines whether the procedure should be executed or not. If the condition is met, the procedure is executed. If the condition is not met, the procedure is bypassed.

Option C) With the COND parameter, we can only check return codes. This statement is incorrect. The COND parameter can be used to check different types of conditions, not just return codes. It allows you to specify a condition based on return codes, condition codes, or other criteria.

Option D) The COND parameter can check the return codes of multiple steps, but as soon as one of This statement is correct. The COND parameter can be used to check the return codes of multiple steps in a job or procedure. If the condition is met for any of the specified steps, the subsequent steps are bypassed.

Therefore, the correct answers are B) When adding the COND parameter to an EXEC statement that calls a procedure, this COND and D) The COND parameter can check the return codes of multiple steps, but as soon as one of.

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 equations are correct, let's go through each option and evaluate them:

Option A) DISP=(,PASS) is equivalent to DISP=(NEW,PASS,KEEP) This option is incorrect because DISP=(,PASS) means that the dataset is not being allocated with a new name (NEW) and the existing dataset is not being deleted (DELETE). However, DISP=(NEW,PASS,KEEP) allocates the dataset with a new name (NEW) and keeps the existing dataset (KEEP), which is different from the first option.

Option B) DISP=(,,KEEP) is equivalent to DISP=(NEW,DELETE,KEEP) This option is correct because both sides of the equation allocate the dataset with a new name (NEW) and keep the existing dataset (KEEP). There is no deletion (DELETE) happening in either case, so the equation is equivalent.

Option C) DISP=(,,CATLG) is equivalent to DISP=(OLD,CATLG,CATLG) This option is incorrect because DISP=(,,CATLG) means that the dataset is not being allocated with a new name (NEW) and not being deleted (DELETE), but being cataloged (CATLG). On the other hand, DISP=(OLD,CATLG,CATLG) means that the dataset is already existing (OLD) and being cataloged twice (CATLG, CATLG), which is different from the first option.

Option D) DISP=(OLD,,) is equivalent to DISP=(OLD,KEEP,KEEP) This option is correct because both sides of the equation refer to an existing dataset (OLD) and do not allocate a new name (NEW). Additionally, both sides keep the existing dataset (KEEP). Therefore, the equation is equivalent.

In summary, the correct equations are B and 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

AI Explanation

To answer this question, we need to understand the format and syntax of JCL (Job Control Language) statements in mainframe programming.

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

Option A) //TU00001T JOB (ATUT000,,,,,,,,),TU00001,CLASS=7,MSGCLASS=X This option is correct. The JOB statement specifies the job name and job parameters. In this case, the programmer's account number (ATUT000) is enclosed in parentheses and placed within the JOB statement. The programmer's name (TU00001) is specified as a positional parameter. The CLASS and MSGCLASS parameters are also provided.

Option B) //TU00001T JOB (ATUT000),’TU00001’,CLASS=7,MSGCLASS=X This option is correct. The JOB statement is similar to option A, with the programmer's account number enclosed in parentheses. The programmer's name is specified as a keyword parameter using single quotes. The CLASS and MSGCLASS parameters are also provided.

Option C) //TU00001T JOB TU00001,’(ATUT000)’,CLASS=7,MSGCLASS=X This option is incorrect. The programmer's name is specified as a positional parameter, but the programmer's account number is specified as a keyword parameter enclosed in single quotes. The correct syntax for specifying sub-parameters is to enclose them in parentheses, as shown in options A and B.

Option D) //TU00001T JOB ,(ATUT000),CLASS=7,MSGCLASS=X This option is incorrect. The programmer's name is missing, and the programmer's account number is specified as a keyword parameter without enclosing parentheses. The correct syntax for specifying sub-parameters is to enclose them in parentheses, as shown in options A and B.

The correct answers are A and B. These options correctly specify the programmer's name and account number as sub-parameters within the JOB statement, using the appropriate syntax.

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

AI Explanation

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

Option A) Multiple OUTPUT statements can be coded for 1 single job step. - This option is correct. In JCL, multiple OUTPUT statements can be coded for a single job step. Each OUTPUT statement specifies the destination and attributes for the output data set.

Option B) The OUTPUT statement can be used to control the authorization of the submitting user. - This option is incorrect. The OUTPUT statement in JCL is used to specify the destination and attributes of the output data set. It does not control the authorization of the submitting user.

Option C) The OUTPUT statement at job level must be coded before the JOB statement. - This option is incorrect. The OUTPUT statement is not used at the job level. It is used within a job step to specify the output data set for that specific step.

Option D) The OUTPUT statement cannot override the MSGCLASS parameter on the JOB statement. - This option is correct. The MSGCLASS parameter on the JOB statement specifies the output message class for the entire job. The OUTPUT statement cannot override this parameter and does not affect the message class.

The correct answers are A) Multiple OUTPUT statements can be coded for 1 single job step and D) The OUTPUT statement cannot override the MSGCLASS parameter on the JOB statement.

  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

AI Explanation

To answer this question, we need to understand the different parameters that can be used on a JOB statement in a job control language (JCL).

A. MSGCLASS - This parameter specifies the message class to which the job's output messages will be directed. It can be used on a JOB statement.

B. COND - This parameter specifies the condition under which the job will be executed. It can be used on a JOB statement.

C. MGMTCLAS - This parameter is used to specify the management class for the job. However, this parameter cannot be used on a JOB statement. It is not a valid parameter for the JOB statement.

D. NOTIFY - This parameter specifies the user or group that will be notified when the job completes. It can be used on a JOB statement.

Therefore, the correct answer is C. MGMTCLAS. This parameter cannot be used on a JOB statement.

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

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

What is the purpose of REGION key word ?

  1. specifies the amount of space required by a step

  2. specifies the amount of space required by a job

  3. both of the above

  4. none of the above


Correct Option: C

How can values be passed from the job stream to an executable program?

  1. Through the VALUE parameter

  2. Through the PARM keyword

  3. Through the PGM parameter

  4. All of the above


Correct Option: B

What parameter of the job statement is used to limit the CPU time consumed by the job?

  1. EXECMAX

  2. LIMIT

  3. TIME

  4. RUNTIME


Correct Option: C

AI Explanation

To answer this question, we need to understand the parameters used in a job statement, specifically those related to limiting CPU time.

Option A) EXECMAX - This option is incorrect because EXECMAX is not a valid parameter used to limit CPU time. It is used to specify the maximum number of times a job can be executed.

Option B) LIMIT - This option is incorrect because LIMIT is also not a valid parameter used to limit CPU time. It is used to specify the maximum amount of resources a job can consume, such as memory or disk space.

Option C) TIME - This option is correct because the TIME parameter is used to limit the CPU time consumed by the job. It specifies the maximum amount of CPU time that the job can use before it is terminated.

Option D) RUNTIME - This option is incorrect because RUNTIME is not a valid parameter used to limit CPU time. It is used to specify the maximum amount of time a job can run, including both CPU time and waiting time.

The correct answer is Option C) TIME. This option is correct because the TIME parameter is specifically used to limit the CPU time consumed by the job.

What parameters can be used to limit the number of records written to a SYSOUT dataset ?

  1. LIMIT

  2. SIZE

  3. MAX

  4. OUTLIM


Correct Option: D

How can a job’s execution priority be modified ?

  1. PRTY parameter

  2. JOBCLASS parameter

  3. RUNTIME parameter

  4. PRIQTY parameter


Correct Option: A
  1. Personal Operating system

  2. Ping On Top

  3. Point Of Sales

  4. Put In Open


Correct Option: C
- Hide questions