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

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
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

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

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
  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
  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