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

What is the function of the DD DCB keyword

  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

AI Explanation

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

Option A) Begins the subparameters of the DCB - This option is correct. The DD DCB keyword is used to begin the subparameters of the DCB (Data Control Block). The DCB contains various parameters that define the attributes of a dataset, such as the record format, block size, and organization.

Option B) Begins the DASD control block - This option is incorrect. The DD DCB keyword is not used to begin the DASD (Direct Access Storage Device) control block. The DASD control block is used to define the characteristics of a disk drive or storage device.

Option C) Marks the close of the DCB - This option is incorrect. The DD DCB keyword does not mark the close of the DCB. The closing of the DCB is typically indicated by the END or EOF (End of File) keyword.

Option D) Modifies the record type parameters - This option is incorrect. The DD DCB keyword does not modify the record type parameters. The record type parameters, such as RECFM (Record Format) and LRECL (Logical Record Length), are specified separately in the DCB.

The correct answer is A) Begins the subparameters of the DCB. This option is correct because the DD DCB keyword is used to indicate the start of the subparameters that define the attributes of a dataset in the DCB.

Concerning the shielding of variables of an internal subroutine from the main EXEC part, which of the following is correct:

  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

AI Explanation

To answer this question, you need to understand the concept of variable shielding in subroutines.

Option A) One can not shield variables in a subroutine from the main EXEC, only from other subroutines. This option is incorrect because it suggests that variables in a subroutine cannot be shielded from the main EXEC. In reality, it is possible to shield variables from both the main EXEC and other subroutines.

Option B) One can shield the variables by using the clause: CALL SUBROUT1 PROCEDURE This option is incorrect because the clause "CALL SUBROUT1 PROCEDURE" does not shield variables. It is used to call a subroutine, not to shield variables.

Option C) One can shield the variables by defining the start clause of a subroutine: SUBROUT1: PROCEDURE This option is correct because the start clause of a subroutine can be used to shield variables. By defining the subroutine with a start clause such as "SUBROUT1: PROCEDURE", the variables within that subroutine are shielded from the main EXEC and other subroutines.

Option D) One can shield the variables by defining the start clause of a subroutine: SUBROUT1: SHIELDED This option is incorrect because the keyword "SHIELDED" is not used to shield variables in a subroutine. The correct keyword to use is "PROCEDURE".

Therefore, the correct answer is Option C) One can shield the variables by defining the start clause of a subroutine: SUBROUT1: PROCEDURE. This option is correct because it accurately describes the method of shielding variables in a subroutine from the main EXEC.

What is the maximum length of a single line of JCL

  1. 71 bytes

  2. 60 bytes

  3. 55 bytes

  4. 80 bytes


Correct Option: A

What is the purpose of DD DUMMY statement

  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

AI Explanation

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

Option A) Marks a deleted DD statement - This option is incorrect. The purpose of the DD DUMMY statement is not to mark a deleted DD statement.

Option B) Begins an interpreted command stream - This option is incorrect. The purpose of the DD DUMMY statement is not to begin an interpreted command stream.

Option C) Specifies no space allocation & no disposition processing - This option is correct. The DD DUMMY statement is used to specify that no space allocation should be performed and no disposition processing should be done for the DD statement.

Option D) Suppress command processing - This option is incorrect. The purpose of the DD DUMMY statement is not to suppress command processing.

The correct answer is C) Specifies no space allocation & no disposition processing. This option is correct because the DD DUMMY statement is used to specify that no space allocation should be performed and no disposition processing should be done for the DD statement.

When a RETURN clause is used in a subroutine, a value can be passed back to the calling EXEC. Which statements are correct?

  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

To pass commands to a specific host environment (ex. TSO), which clause must be used?

  1. HOST TSO

  2. HSTADDRS TSO

  3. ADDRESS TSO

  4. EXEC TSO


Correct Option: C

REXX has extended tracing possibilities, even interactively. Which command activates the interactive trace?

  1. TRACE R

  2. TRACE ?R

  3. TRACE IR

  4. INTTRACE R


Correct Option: B

AI Explanation

To answer this question, you need to understand the command used to activate the interactive trace in REXX.

Option A) TRACE R - This option is incorrect because the TRACE R command does not activate the interactive trace. Instead, it activates the trace for the execution of a REXX program.

Option B) TRACE ?R - This option is correct because the TRACE ?R command activates the interactive trace. The ? symbol is used to indicate an interactive trace in REXX.

Option C) TRACE IR - This option is incorrect because the TRACE IR command does not activate the interactive trace. Instead, it activates the trace for the execution of a REXX program.

Option D) INTTRACE R - This option is incorrect because the INTTRACE R command does not activate the interactive trace. Instead, it activates the internal trace for the execution of a REXX program.

The correct answer is B) TRACE ?R. This option is correct because it activates the interactive trace in REXX.

What is no prerequisite for using the EXECIO command?

  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

Which of the following belongs to JES2

  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

What is/are valid Syntax(s) of paramtere EXPDT

  1. EXPDT=yyddd

  2. EXPDT=yy/ddd

  3. EXPDT=yyyyddd

  4. EXPDT=yyyy/ddd


Correct Option: A,D

How do you write the expiration date of February 2, 1996 for a dataset

  1. EXPDT=1996033

  2. EXPDT=1996/0202

  3. EXPDT=1996/033

  4. EXPDT=033/1996


Correct Option: C

Which value of parameter RD indicates that automatic and deferred restart in any form can't happen

  1. R

  2. NC

  3. RNC

  4. NR


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