0

mainframe Online Quiz - 149

Description: mainframe Online Quiz - 149
Number of Questions: 20
Created by:
Tags: mainframe
Attempted 0/20 Correct 0 Score 0
  1. START

  2. RUN

  3. EXEC

  4. GO


Correct Option: C
Explanation:

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

The statement that marks the beginning of a job step; assigns a name to the step; identifies the program or catalogued or in-stream procedure to be executed in the step is EXEC.

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

A. RUN: This option is incorrect. RUN is not a valid JCL statement.

B. START: This option is incorrect. While START is a valid JCL statement, it is not used to begin a job step.

C. EXEC: This option is correct. EXEC is the JCL statement that marks the beginning of a job step, assigns a name to the step, and identifies the program or catalogued or in-stream procedure to be executed in the step.

D. GO: This option is incorrect. GO is not a valid JCL statement.

The Answer is: C

How can unused space allocation be returned to the system when a dataset is closed

  1. RETURN

  2. RLSE

  3. CONTIG

  4. CLOSE


Correct Option: B
  1. CHCKPOINT DD statement

  2. SYSCHK DD statement

  3. CHKOUT DD statement

  4. CHECK or DD statement


Correct Option: B

How can the disposition of sysout datasets be set for an entire jobstream

  1. SYSOUT parameter

  2. OUTPUT parameter

  3. DEFAULT parameter

  4. DEST keyword


Correct Option: A

AI Explanation

To answer this question, you need to understand how the disposition of SYSOUT datasets can be set for an entire jobstream.

Option A) SYSOUT parameter - This option is correct because you can use the SYSOUT parameter to specify the disposition of the SYSOUT datasets for an entire jobstream. By providing a specific disposition value (e.g., KEEP, DELETE), you can control what happens to the output datasets after the job completes.

Option B) OUTPUT parameter - This option is incorrect because the OUTPUT parameter is used to specify the destination and characteristics of the output from individual job steps, not for setting the disposition of SYSOUT datasets for the entire jobstream.

Option C) DEFAULT parameter - This option is incorrect because there is no specific parameter called DEFAULT that is used to set the disposition of SYSOUT datasets for the entire jobstream.

Option D) DEST keyword - This option is incorrect because the DEST keyword is used within the OUTPUT parameter to specify the destination for the output from individual job steps, not for setting the disposition of SYSOUT datasets for the entire jobstream.

The correct answer is Option A) SYSOUT parameter. This option is correct because you can use the SYSOUT parameter to set the disposition of SYSOUT datasets for an entire jobstream.

What statement marks the end of an in-stream or Catalogued procedure

  1. STREAM

  2. SET

  3. PROC

  4. PEND


Correct Option: D

What is the function of DD name parameter with a 2 part structure; Audit.Report

  1. Override the Audit DD statement in the report

  2. Override the Report DD statement in the Audit procedure

  3. Concatenate a dataset onto a DD statement in a called module

  4. Delete the Audit DD statement in the Report


Correct Option: B

AI Explanation

To answer this question, we need to understand the purpose of the DD name parameter with a two-part structure.

The DD name parameter is used in JCL (Job Control Language) to define a logical name for a dataset or file that is referenced in a program or procedure. The DD name parameter is typically followed by a dataset name or file name.

In the given scenario, the DD name parameter is "Audit.Report" which has a two-part structure. The first part "Audit" represents the DD name for a dataset or file, and the second part "Report" represents the DD name used in the Audit procedure.

The correct answer is B) Override the Report DD statement in the Audit procedure.

Explanation for Option B) Override the Report DD statement in the Audit procedure: When the DD name parameter "Audit.Report" is used in the Audit procedure, it overrides the DD statement for the dataset or file named "Report" that is referenced in the Audit procedure. This means that the Audit procedure will use a different dataset or file instead of the one specified in the original Report DD statement.

Which DD parameters are required

  1. All parameters & Keywords are optional

  2. Dsname, SPACE, RECFM

  3. Dsname, SPACE, UNIT

  4. Dsname, DISP, SPACE


Correct Option: A

How can values be passed from the job stream to an executable program?

  1. Through the PARM keyword

  2. Through the VALUE parameter

  3. Through the PGM parameter

  4. All of the above


Correct Option: A

AI Explanation

To answer this question, you need to understand how values can be passed from the job stream to an executable program. Let's go through each option to understand why it is correct or incorrect:

Option A) Through the PARM keyword - This option is correct because the PARM keyword is used to pass values from the job stream to the executable program. The values are specified after the PARM keyword in the job control language (JCL) statement.

Option B) Through the VALUE parameter - This option is incorrect because there is no explicit "VALUE" parameter used to pass values from the job stream to an executable program.

Option C) Through the PGM parameter - This option is incorrect because the PGM parameter is used to specify the name of the executable program to be executed, but it does not directly pass values from the job stream to the program.

Option D) All of the above - This option is incorrect because only option A (Through the PARM keyword) is the correct method to pass values from the job stream to an executable program.

The correct answer is A) Through the PARM keyword. This option is correct because the PARM keyword is used to pass values from the job stream to the executable program.

  1. Identify a library to be searched for programs named in the EXEC statement

  2. Identify a library containing executable job steps

  3. Override the system step library within a job stream

  4. All of the above


Correct Option: D

A DD statement consists of 4 fields. Name them :-

  1. Name, DD, Space, Device

  2. Format, Name, DD, Space

  3. DD, parameter, device, format

  4. Name, DD, parameter, comments


Correct Option: D

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

How can an in-stream dataset be terminated ?

  1. //

  2. //*

  3. /*

  4. None of the above


Correct Option: C

How can unused space allocation be returned to the system when a dataset is closed ?

  1. RETURN

  2. RLSE

  3. CONTIG

  4. CLOSE


Correct Option: B
  1. Marks the end of a job

  2. Marks the beginning of an instream procedure

  3. Marks the beginning of a job & assigns a name to the job

  4. Assigns an execution priority to a job


Correct Option: C
  1. Positional, Keyword

  2. Keyword, Control

  3. Dynamic, Static

  4. Named, Dynamic


Correct Option: A
  1. Tells the system what to do with the dataset following normal termination of the step.

  2. Describes the status of the dataset

  3. Tells the system what to do with the dataset following abnormal termination of the step.

  4. All of the above


Correct Option: D
  1. 71 bytes

  2. 72 bytes

  3. 68 bytes

  4. 70 bytes


Correct Option: A

Whats virtual storage in MVS?

  1. An addressing scheme that allows external disk storage to appear as main storage.

  2. Each running program can assume it has access to all of the storage defined by the architecture's addressing scheme.

  3. a and b

  4. a or b


Correct Option: C
- Hide questions