0

mainframe Online Quiz - 19

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

How is the record format of an output dataset specified?

  1. RECORG parameter

  2. STORCLAS parameter

  3. RECFM parameter

  4. None of the above


Correct Option: C

What is the purpose of DD * statement?

  1. Begins an input data prompt at the system console

  2. Begins an in-stream datase

  3. Marks the end of a command stream

  4. Includes all datasets within a naming pattern


Correct Option: B

AI Explanation

To answer this question, you need to understand the purpose of the DD * statement in a mainframe environment.

Option A) Begins an input data prompt at the system console - This option is incorrect. The DD * statement is not used for input data prompts at the system console.

Option B) Begins an in-stream dataset - This option is correct. The DD * statement is used to indicate that the dataset is included within the JCL (Job Control Language) itself, rather than being a separate physical dataset. It allows the program to read data directly from the JCL.

Option C) Marks the end of a command stream - This option is incorrect. The DD * statement is not used to mark the end of a command stream.

Option D) Includes all datasets within a naming pattern - This option is incorrect. The DD * statement is not used to include all datasets within a naming pattern.

The correct answer is B) Begins an in-stream dataset. This option is correct because the DD * statement is used to indicate that the dataset is included within the JCL itself.

A DD statement has 2 types of parameters. Name them ?

  1. Keyword, Control

  2. Positional, Keyword

  3. Dynamic, Static

  4. Named, Dynamic


Correct Option: B

What is the function of JOB statement ?

  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

How can a job send a status message to a TSO user at the completion of a job ?

  1. STATUS

  2. NOTIFY

  3. ENDMSG

  4. USER


Correct Option: B

What is the function of a DD statement ?

  1. Identifies & describes a datase

  2. Delimits a DO loop

  3. Marks the start of a declarative section

  4. Delimits the start of an inline include section


Correct Option: A

When output dataset space is required, what quantity categories are used ?

  1. Address, Units, CONTIG or ALS

  2. Displacement and length

  3. Primary, Secondary, Directory

  4. Megabytes, Kilobytes and Bytes


Correct Option: C

What statement 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 ?

  1. DD

  2. RUN

  3. EXEC

  4. SYSOUT


Correct Option: C

AI Explanation

To answer this question, you need to understand the concept of job steps in job control language (JCL).

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

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

Option A) DD - This option is incorrect. The DD statement is used in JCL to define and describe the input and output data sets used by a program or job step. It is not used to mark the beginning of a job step or identify the program to be executed.

Option B) RUN - This option is incorrect. The RUN statement is not a valid statement in JCL. It is not used to mark the beginning of a job step or identify the program to be executed.

Option C) EXEC - This option is correct. The EXEC statement is used in JCL to mark the beginning of a job step, assign a name to the step, and identify the program or cataloged or in-stream procedure to be executed in the step.

Option D) SYSOUT - This option is incorrect. The SYSOUT statement is used in JCL to specify the output destination and characteristics for the program or job step. It is not used to mark the beginning of a job step or identify the program to be executed.

The correct answer is C) EXEC. This option is correct because the EXEC statement is used to mark the beginning of a job step, assign a name to the step, and identify the program or cataloged or in-stream procedure to be executed in the step.

Which of the following is correct?

  1. Natural is a fourth generation language

  2. Natural is a third generation language

  3. Natural is a second generation language

  4. Natural is a first generation language


Correct Option: A
  1. Internal Sequence Number

  2. Internal Sequencing Number

  3. Internal Serial Number

  4. None of the above


Correct Option: A
  1. Call

  2. Perform

  3. Callnat

  4. None of the above


Correct Option: C
  1. Structural mode and Printing mode

  2. Open mode and Closed mode

  3. Structured Mode and Reporting Mode

  4. Printing mode and Reporting mode


Correct Option: C
  1. 1 #MESSAGE (A50) 'CONST' WE APPRECIATE YOUR BUSINESS

  2. 1 #MESSAGE (A50) CONST

  3. 1 #MESSAGE (A50) 'WE APPRECIATE YOUR BUSINESS’

  4. 1 #MESSAGE (A50) CONST ‘WE APPRECIATE YOUR BUSINESS’


Correct Option: B
  1. Program

  2. Subprogram

  3. Helproutine

  4. All of the above


Correct Option: D
- Hide questions