mainframe Online Quiz - 37
Description: mainframe Online Quiz - 37 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: mainframe |
What is correct?
-
A REGION parameter on an EXEC statement, overrides the REGION parameter on the JOB
-
A REGION parameter on an EXEC statement, limits the space available for that step, but
-
A REGION parameter on an EXEC statement, is only taken into consideration if there is no
-
The sum of all REGION parameters on EXEC statements, must be equal to the REGION
Which of the following concerning the COND parameter are true on EXEC statement level? (2 answers)
-
The COND parameter always indicates that if its condition is met, the step is NOT executed.
-
When adding the COND parameter to an EXEC statement that calls a procedure, this COND
-
With the COND parameter, we can only check return codes.
-
The COND parameter can check the return codes of multiple steps, but as soon as one of
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?
-
&NAME&(TEMP)
-
&&TEMP(NAME)
-
&&NAME
-
&NAME
When to use DISP=MOD?
-
For both sequential and partitioned datasets to be extended or created.
-
Only for existing datasets to be extended.
-
For all secured sequential datasets to be extended.
-
Only for sequential datasets to be extended or created.
Which of the following equations are correct?
-
DISP=(,PASS) is equivalent to DISP=(NEW,PASS,KEEP)
-
DISP=(,,KEEP) is equivalent to DISP=(NEW,DELETE,KEEP)
-
DISP=(,,CATLG) is equivalent to DISP=(OLD,CATLG,CATLG)
-
DISP=(OLD,,) is equivalent to DISP=(OLD,KEEP,KEEP)
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:
-
//TU00001T JOB (ATUT000,,,,,,,,),TU00001,CLASS=7,MSGCLASS=X
-
//TU00001T JOB (ATUT000),’TU00001’,CLASS=7,MSGCLASS=X
-
//TU00001T JOB TU00001,’(ATUT000)’,CLASS=7,MSGCLASS=X
-
//TU00001T JOB ,(ATUT000),CLASS=7,MSGCLASS=X
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.
-
Multiple OUTPUT statements can be coded for 1 single job step.
-
The OUTPUT statement can be used to control the authorisation of the submitting user,
-
The OUTPUT statement at job level must be coded before the JOB statement.
-
The OUTPUT statement can not override the MSGCLASS parameter on the JOB statement.
Which of the following DD statements to create a new data set is correctly written?
-
//DD1 DD DSN=TBISUSR.TU00001.DATA1,DISP=(NEW,KEEP),DSORG=PS,LRECL=80,
-
//DD2 DD DSN=TBISUSR.TU00001.DATA2(MBR1),DISP=(NEW,KEEP),DSORG=PO,
-
//DD3 DD DSN=TBISUSR.TU00001.DATA3(MBR2),DISP=(NEW,KEEP),DSORG=PO,
-
//DD4 DD DSN=TBISUSR.TU00001.DATA4,DISP=(NEW,KEEP),DSORG=PS,
-
MSGCLASS
-
COND
-
MGMTCLAS
-
NOTIFY
-
//DD1 DD DSN=TBISUSR.TU00001.GDG(+1),DISP=(NEW,CATLG),LRECL=80,
-
//DD1 DD DSN=TBISUSR.TU00001.GDG(+1),DISP=SHR
-
//DD1 DD DSN=TBISUSR.TU00001.GDG(8),DISP=(NEW,CATLG),LRECL=80,
-
//DD1 DD DSN=TBISUSR.TU00001.GDG(8),DISP=SHR
-
STEP.RC NE 8
-
ABEND = FALSE
-
STEP.CC = U4038
-
STEP.RUN EQ TRUE
-
... can be used for input, to use both DD entries describing sequential datasets and DD
-
... can be used to write multiple output datasets.
-
... can contain a dummy data set in the input, which will indicate the end of the input.
-
... stored on different device types, can not be used for input.
-
We can override parameters on EXEC statements and add DD statements.
-
We can override, nullify and add parameters on all statements and add DD and/or OUTPUT
-
We can add and override parameters to all statements, but can only nullify parameters
-
We can nullify, override and add parameters to all statements, but can only add DD statements.
-
&GROUP&DIV.&SUBJCRS.&TYPE&NMBR
-
&GROUP&DIV..&SUBJ.CRS.&TYPE&NMBR
-
&GROUP.&DIV..&SUBJ.CRS.&TYPE.&NMBR.
-
&GROUP.&DIV..&SUBJ.CRS..&TYPE.&NMBR.
-
specifies the amount of space required by a step
-
specifies the amount of space required by a job
-
both of the above
-
none of the above
How can values be passed from the job stream to an executable program?
-
Through the VALUE parameter
-
Through the PARM keyword
-
Through the PGM parameter
-
All of the above
To pass values from a job stream to an executable program, the user needs to understand the various mechanisms that can be used to accomplish this.
Option A: Through the VALUE parameter.
This option is incorrect. The VALUE parameter is not used to pass values from a job stream to an executable program. It is used to specify values for symbolic parameters or variables that are defined in the job stream.
Option B: Through the PARM keyword.
This option is correct. The PARM keyword is used to pass values from a job stream to an executable program. The PARM keyword can be specified in the EXEC statement that invokes the program. The value specified in the PARM keyword is passed to the program as a command-line argument.
Option C: Through the PGM parameter.
This option is incorrect. The PGM parameter is used to specify the name of the executable program that is to be executed. It is not used to pass values from the job stream to the program.
Option D: All of the above.
This option is incorrect. Only option B is correct.
Therefore, the correct answer is:
The Answer is: B
What parameter of the job statement is used to limit the CPU time consumed by the job?
-
EXECMAX
-
LIMIT
-
TIME
-
RUNTIME
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 ?
-
LIMIT
-
SIZE
-
MAX
-
OUTLIM
How can a job’s execution priority be modified ?
-
PRTY parameter
-
JOBCLASS parameter
-
RUNTIME parameter
-
PRIQTY parameter
AI Explanation
To answer this question, you need to understand how job execution priority is determined and how it can be modified.
In many operating systems, including some mainframe systems, job execution priority is determined by assigning a priority value to each job. This priority value determines the order in which jobs are executed by the system.
The correct answer is A) PRTY parameter. The PRTY (Priority) parameter is used to modify a job's execution priority. By specifying a higher priority value, the job will be given higher execution priority, and vice versa. This allows the system administrator or programmer to control the order in which jobs are executed and ensure that critical or time-sensitive jobs are given higher priority.
Let's go through each option to understand why they are correct or incorrect:
Option A) PRTY parameter - This option is correct because the PRTY parameter is used to modify a job's execution priority.
Option B) JOBCLASS parameter - This option is incorrect. The JOBCLASS parameter is used to specify the job class or category to which a job belongs. It does not directly modify the execution priority of a job.
Option C) RUNTIME parameter - This option is incorrect. The RUNTIME parameter is used to specify the maximum runtime allowed for a job. It does not directly modify the execution priority of a job.
Option D) PRIQTY parameter - This option is incorrect. There is no standard parameter called PRIQTY in mainframe systems that is used to modify a job's execution priority.
Therefore, the correct answer is A) PRTY parameter. This option is correct because the PRTY parameter is used to modify a job's execution priority.
What is the full form for POS?1234
-
Personal Operating system
-
Ping On Top
-
Point Of Sales
-
Put In Open