0

mainframe Online Quiz - 38

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

What is SMS

  1. Space management system

  2. Storage Management system

  3. System Management subsystem

  4. None of the above


Correct Option: B

DISP=(NEW,,KEEP) - what will happen if the job goes fine?

  1. CATLG - Dataset will be cataloged

  2. DELETE - Dataset should be deleted

  3. PASS - Dataset might be passed subsequent job step in the same job

  4. KEEP - Dataset will be retained


Correct Option: B

//INFILE DD DSN=&&TEMP,(NEW,PASS,) Here Temp is an temporary dataset which will be

  1. deleted at the end of the job

  2. deleted at the end of the step

  3. deleted when end of file is reached

  4. either 2 or 3


Correct Option: A

If * used with SYSOUT (SYSOUT=*) parameter, then where thw displays, JCL statements and messages will be printed.

  1. Spool

  2. The class assigned to MSGCLASS parameter will be used to SYSOUT.

  3. The class assigned to CLASS parameter will be used to SYSOUT.

  4. None of the above


Correct Option: B

If JCLLIB is not mentioned in the JCL, then in which library it will do a search?

  1. SYS.PROCLIB

  2. SYS1.PROCLIB1

  3. SYS.PROCLIB1

  4. SYS1.PROCLIB


Correct Option: D

which of the following statements cannot be coded within the procedure

  1. DD DATA

  2. JOB

  3. EXEC

  4. DD *


Correct Option: A,B,D

The following portion of procedure division MOVE 0 TO A, I. PARA-1. ADD 3 TO A. ADD 2 TO I. IF I < a=" ‘,">B MOVE A TO C ELSE MOVE B TO C. ADD C TO D. Indicate which one of the following does not support the above statements

  1. The value of A will be added to D only if A is greater than B.

  2. The value of B will be added to D only if B is greater than A.

  3. The larger of the values, A and B will be added to D.

  4. NONE


Correct Option: C

IF NOT AGE LESS THAN 30 AND 40 GO TO PARA-AGE-MIDDLES. The controls will go to the paragraph named PARA-AGE-MIDDLE.

  1. if AGE is greater than or equal to 40.

  2. If AGE is greater than or equal to 30.

  3. If AGE is greater than or equal to 30 but less than 40.

  4. If AGE is less than or equal to 30.


Correct Option: C

Indicate which of the following is true about the 88 level entry.

  1. it is used for individual data item in working-storage section.

  2. It is used for items with rename clause.

  3. It is used for a data item which redefines another data item.

  4. It is used for a condition name which can have either a true or false.


Correct Option: D

AI Explanation

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

Option A) It is used for individual data item in working-storage section. This option is incorrect because the 88 level entry is not used for individual data items in the working-storage section. The 88 level entry is used for condition names, not data items.

Option B) It is used for items with the rename clause. This option is incorrect because the 88 level entry is not used specifically for items with the rename clause. The 88 level entry is used for condition names.

Option C) It is used for a data item which redefines another data item. This option is incorrect because the 88 level entry is not used for data items that redefine another data item. The 88 level entry is used for condition names.

Option D) It is used for a condition name which can have either a true or false. This option is correct. The 88 level entry is used for condition names in COBOL. A condition name is a user-defined identifier that represents a condition that can have either a true or false value. The 88 level entry assigns a condition name to a specific value or values, allowing it to be used in conditionals to test for the true or false state.

The correct answer is Option D. This option is correct because the 88 level entry is used for a condition name that can have either a true or false value.

IF A = 1 OR 2 OR 3 NEXT SENTENCE ELSE MOVE A TO B. Which of the following describes the above sentence correctly

  1. IF A NOT = 1 OR 2 OR 3 MOVE A TO B.

  2. IF NOT A = 1 AND 2 AND 3 MOVE A TO B.

  3. IF A NOT = 1 AND 2 AND 3 MOVE A TO B.

  4. IF A NOT = 1 OR A NOT = 2 OR A NOT = 3 MOVE A TO B.


Correct Option: C

AI Explanation

To answer this question, we need to understand the logic of the given sentence.

The given sentence states: IF A = 1 OR 2 OR 3, then perform the next sentence. Otherwise, move A to B.

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

Option A) IF A NOT = 1 OR 2 OR 3 MOVE A TO B. This option is incorrect because it uses the logical operator "OR" instead of "AND" between 2 and 3. Additionally, the use of "NOT" is incorrect as it contradicts the original condition.

Option B) IF NOT A = 1 AND 2 AND 3 MOVE A TO B. This option is incorrect because it uses the logical operator "AND" instead of "OR" between 1, 2, and 3. Additionally, the use of "NOT" is incorrect as it contradicts the original condition.

Option C) IF A NOT = 1 AND 2 AND 3 MOVE A TO B. This option is correct because it correctly uses the logical operator "AND" between 1, 2, and 3. The use of "NOT" is also correct as it negates the condition, indicating that if A is not equal to 1, 2, and 3, then A should be moved to B.

Option D) IF A NOT = 1 OR A NOT = 2 OR A NOT = 3 MOVE A TO B. This option is incorrect because it uses the logical operator "OR" instead of "AND" between 1, 2, and 3. Additionally, the use of "NOT" is incorrect as it contradicts the original condition.

The correct answer is C. This option is correct because it correctly negates the condition by using "NOT" and uses the logical operator "AND" between 1, 2, and 3.

IF A <> D GO TO P1 ELSE IF NOT (A > B OR B < a="6," b="7," c="5" d="8">

  1. P1

  2. P2

  3. P3

  4. NONE OF THE ABOVE.


Correct Option: B

Determine the total number of bytes in the following. 01 REC-1. 02 FIRST-GROUP. 03 A1 PIC X(4). 03 A2 PIC 99. 02 REDEFINES FIRST-GROUP. 03 A3 PIC 999. 03 A4 PIC 999. 02 THIRD-GROUP. 03 A5 OCCURS 5 TIMES PIC 99.

  1. 22

  2. 16

  3. 12

  4. 14


Correct Option: B

AI Explanation

To determine the total number of bytes in the given structure, we need to consider the size of each field and group.

Let's go through each line to calculate the total number of bytes:

01 REC-1 - This is a level 01 group and does not contribute to the byte count.

02 FIRST-GROUP - This is a level 02 group and does not contribute to the byte count.

03 A1 PIC X(4) - This field has a length of 4 bytes.

03 A2 PIC 99 - This field has a length of 2 bytes.

02 REDEFINES FIRST-GROUP - This is a level 02 group and does not contribute to the byte count.

03 A3 PIC 999 - This field has a length of 3 bytes.

03 A4 PIC 999 - This field has a length of 3 bytes.

02 THIRD-GROUP - This is a level 02 group and does not contribute to the byte count.

03 A5 OCCURS 5 TIMES PIC 99 - This field occurs 5 times and each occurrence has a length of 2 bytes. So, the total length for this field is 5 * 2 = 10 bytes.

Adding up the byte counts for each field, we have:

4 + 2 + 3 + 3 + 10 = 22 bytes.

Therefore, the correct answer is A) 22.

Determine the bytes 01 REC-1. 01 A PIC X(6). 02 B REDEFINES A. 03 C OCCURS 6 TIMES PIC 9. 02 D OCCURS 4 TIMES. 03 E PIC X(5). 03 F PIC 999

  1. 38

  2. 44

  3. 14

  4. 12


Correct Option: A

Which of the following statements are incorrect.

  1. Subscripting enables us to write a more compact code in the procedure division.

  2. Subscripting enables us to refer to any element of a table by the same data name with the facility of identifying the particular element through the values of subscript

  3. Subscripting reduces the number of entries to be included in the data division.

  4. Subscripting enables us to use loops in the procedure division.


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

AI Explanation

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

Option A) The passing of job control information to the Job Entry Subsystem - This option is correct because JCL (Job Control Language) statements are used to provide instructions to the Job Entry Subsystem (JES) about how to execute a job. JCL statements specify job control information such as the program to be executed, input and output files, and other parameters.

Option B) The addressing of input resources - This option is correct because JCL statements specify the input resources, such as files or datasets, that are required for the job. JCL defines the names and locations of the input resources, allowing the Job Entry Subsystem to access them during job execution.

Option C) The performance of calculations - This option is incorrect. JCL statements are primarily used for job control purposes and do not directly control the performance of calculations. The calculations themselves are typically performed by the programs or utilities specified in the JCL.

Option D) The sending of an email to the person who submitted the job - This option is incorrect. JCL statements do not directly control the sending of emails. However, some Job Entry Subsystems may have features or capabilities to send notifications or emails based on job completion or other events, but this is not a direct function of JCL.

Therefore, the correct answers are A) The passing of job control information to the Job Entry Subsystem and B) The addressing of input resources. These are the functions directly controlled by JCL statements.

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: (2 answers)

  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

AI Explanation

To answer this question, let's go through each option:

A. When TIME is added to a JOB statement, the entire job run time is limited to that amount. This statement is true. When the TIME parameter is added to a JOB statement, it sets a limit on the total run time for the job. If the job exceeds the specified time limit, it will be terminated.

B. When REGION=0 is coded, the job will not execute due to the fact that no working storage. This statement is false. When REGION=0 is coded on the JOB statement, it sets the maximum amount of virtual storage that the job can use to zero. This means that the job will not be able to allocate any virtual storage and may fail due to storage constraints. However, it does not necessarily mean that the job will not execute. It will depend on the specific program being executed and how it handles storage allocation failures.

C. The COND parameter on JOB level will place the same condition on every EXEC statement. This statement is true. The COND parameter on the JOB level specifies a condition that is applied to every subsequent EXEC statement within the job. If the condition is not met, the EXEC statement will not be executed.

D. TYPRUN=SCAN means that the entire JCL script will be checked for syntax and value. This statement is false. TYPRUN=SCAN is used to perform a syntax and value check on each job step individually, not on the entire JCL script. It allows for early detection of syntax errors and invalid values before the job is actually executed.

Based on the explanations above, the correct answers are A and 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
  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
- Hide questions