0

mainframe Online Quiz - 147

Description: mainframe Online Quiz - 147
Number of Questions: 20
Created by:
Tags: mainframe
Attempted 0/20 Correct 0 Score 0
  1. Begins the subparameters of the DCB

  2. Begins the DASD control block

  3. Marks the close of the DCB

  4. Modifies the record type parameters


Correct Option: A
  1. One can not shield variables in a subroutine from the main EXEC, only from other subroutines.

  2. One can shield the variables by using the clause: CALL SUBROUT1 PROCEDURE

  3. One can shield the variables by defining the start clause of a subroutine:SUBROUT1: PROCEDURE

  4. One can shield the variables by defining the start clause of a subroutine: SUBROUT1: SHIELDED


Correct Option: C
  1. 71 bytes

  2. 60 bytes

  3. 55 bytes

  4. 80 bytes


Correct Option: A
Explanation:

To solve this question, the user needs to have knowledge of Job Control Language (JCL).

The maximum length of a single line of JCL is an important consideration while writing mainframe JCL. JCL statement can be continued onto the next line by inserting a hyphen (-) in column 72 of the JCL statement. This is referred to as JCL continuation.

Now, let's go through each option and explain why it is right or wrong:

A. 71 bytes: This option is correct. The maximum length of a single line of JCL is 71 bytes. Any JCL statement that exceeds this limit should include a continuation character (-) in column 72.

B. 60 bytes: This option is incorrect. The maximum length of a single line of JCL is greater than 60 bytes.

C. 55 bytes: This option is incorrect. The maximum length of a single line of JCL is greater than 55 bytes.

D. 80 bytes: This option is incorrect. Although 80 bytes is a common length for lines of code in other programming languages, it is not the maximum length of a single line of JCL.

The Answer is: A. 71 bytes

  1. Marks a deleted DD statement

  2. Begins an interpreted command stream

  3. Specifies no space allocation & no disposition processing

  4. Suppress command processing


Correct Option: C
  1. This value must be numeric.

  2. This value can be alphanumeric.

  3. This value is stored in the system variable RC.

  4. This value is stored in the system variable RCODE.


Correct Option: B

Many JCL statements contain specific values designed to direct & control theexecution of the statement. What are these fields called

  1. Linkage Variables

  2. Parameters

  3. Control Libraries

  4. Includes


Correct Option: B

AI Explanation

To answer this question, you need to understand the concept of JCL (Job Control Language) statements. JCL is a scripting language used on IBM mainframe operating systems to control batch processing.

The fields in JCL statements that contain specific values designed to direct and control the execution of the statement are called "Parameters."

Option A) Linkage Variables - This option is incorrect because linkage variables are used in programming languages like COBOL to pass data between different programs or modules. They are not specific to JCL statements.

Option B) Parameters - This option is correct because parameters are the fields in JCL statements that contain specific values to direct and control the execution of the statement.

Option C) Control Libraries - This option is incorrect because control libraries are used in JCL statements to specify the location of system control programs or procedures. They are not the fields that direct and control the execution of the statement.

Option D) Includes - This option is incorrect because includes are used in JCL statements to include external files or libraries into the JCL. They are not the fields that direct and control the execution of the statement.

The correct answer is B) Parameters. This option is correct because parameters are the fields in JCL statements that contain specific values to direct and control the execution of the statement.

If I want to fill the variable DAY with '01', the variable MONTH with 'January' and the variable YEAR with '2009', which would be a correct way to do so, if the data '01 January 2009' is read from the input screen?

  1. PARSE PULL DAY MONTH YEAR

  2. PULL DATE followed by PARSE VALUE DATE DAY MONTH YEAR

  3. PULL DATE followed by PARSE VALUE DATE WITH DAY MONTH YEAR

  4. PULL DATE followed by PARSE VAR DATE DAY MONTH YEAR


Correct Option: B
  1. The dataset must be sequential or a member of a partitioned dataset.

  2. The dataset must be allocated to a file name or DD name.

  3. The dataset must be exclusively enqueued (DISP=OLD or NEW).

  4. TSO or MVS environment must be active.


Correct Option: C
  1. XMIT

  2. XEQ

  3. ROUTEXEQ

  4. OPERATOR


Correct Option: A,B

Improper handling of which parameter leads to abend S322

  1. CLASS

  2. TIME

  3. REGION

  4. JOB


Correct Option: B

How many DD statements can be allocated to a single job step?

  1. 255

  2. 16

  3. 1635

  4. None of the above


Correct Option: C

Which of the following is not used with LINES parameter

  1. DUMP

  2. CANCEL

  3. ABEND

  4. WARNING


Correct Option: C

Which parameter is used to copy the attributes and allocation information for a new data set from an existing data set?

  1. LIKE

  2. COPY

  3. COPIES

  4. All of the above


Correct Option: A
  1. EXPDT=yyddd

  2. EXPDT=yy/ddd

  3. EXPDT=yyyyddd

  4. EXPDT=yyyy/ddd


Correct Option: A,D
  1. EXPDT=1996033

  2. EXPDT=1996/0202

  3. EXPDT=1996/033

  4. EXPDT=033/1996


Correct Option: C
  1. LRECL = 0 can be valid when RECFM = F

  2. LRECL=nnnnnK syntax can be valid

  3. LRECL can not be used with VSAM Files

  4. LRECL must not exceed BLKSIZE minus 4 when RECFM=VS


Correct Option: B,D
- Hide questions