0

mainframe Online Quiz - 83

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

How many divisions are there in Cobol

  1. 1

  2. 2

  3. 3

  4. 4


Correct Option: D

Sorting in the cobol program is considered as external sorting.

  1. True

  2. False


Correct Option: A

how many bytes s9(9) comp-3 takes

  1. 2

  2. 5

  3. 6

  4. 9


Correct Option: B

Cobol is a non structured language

  1. True

  2. False


Correct Option: B

There is no need to include the DCLGEN in the cobol program

  1. True

  2. False


Correct Option: A

What is the maximum length of a single line in JCL ?

  1. 60 bytes

  2. 55 bytes

  3. 80 bytes

  4. 71 bytes


Correct Option: D

AI Explanation

To answer this question, you need to understand the characteristics of JCL (Job Control Language) in mainframe computing.

JCL is a scripting language used to define and control jobs on IBM mainframe operating systems. It consists of statements that specify the various job steps, input/output files, and system resources required for job execution.

In JCL, the maximum length of a single line is 71 bytes. This includes the statement itself and any continuation characters used to extend the line beyond the initial 71 bytes.

Option A) 60 bytes - This option is incorrect because the maximum line length in JCL is 71 bytes.

Option B) 55 bytes - This option is incorrect because the maximum line length in JCL is 71 bytes.

Option C) 80 bytes - This option is incorrect because the maximum line length in JCL is 71 bytes.

Option D) 71 bytes - This option is correct because it correctly identifies the maximum line length in JCL.

The correct answer is D) 71 bytes.

What is the purpose of the ‘DD KEYLEN’ parameter?

  1. Specify the length of a data set key in bytes

  2. Override the key length of an SMS defined VSAM dataset

  3. Override the key length specified in the dataset label

  4. All of the above


Correct Option: D

AI Explanation

To answer this question, we need to understand the purpose of the 'DD KEYLEN' parameter.

Option A) Specify the length of a data set key in bytes - This option is correct because the 'DD KEYLEN' parameter is used to specify the length of a data set key in bytes. The key length is important in determining how the data in the dataset is organized and accessed.

Option B) Override the key length of an SMS defined VSAM dataset - This option is correct because the 'DD KEYLEN' parameter can also be used to override the key length of an SMS (System Managed Storage) defined VSAM (Virtual Storage Access Method) dataset. SMS is a feature of IBM's z/OS operating system that automatically manages storage devices and data sets.

Option C) Override the key length specified in the dataset label - This option is correct because the 'DD KEYLEN' parameter can also be used to override the key length specified in the dataset label. The dataset label contains information about the dataset, including the key length.

Option D) All of the above - This option is correct because all of the statements in options A, B, and C are true. The 'DD KEYLEN' parameter can be used to specify the key length of a data set, override the key length of an SMS defined VSAM dataset, and override the key length specified in the dataset label.

Therefore, the correct answer is D) All of the above.

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

To pass values from the job stream to an executable program, the user can use various methods. Let's go through each option and explain why it is right or wrong:

A. Through the PARM keyword: This option is correct. The PARM keyword is used to pass values from a job stream to an executable program. The values are passed as arguments to the program and can be accessed by the program using the standard programming language constructs.

B. Through the VALUE parameter: This option is incorrect. The VALUE parameter is not used for passing values from a job stream to an executable program. It is used for assigning a value to a symbolic parameter.

C. Through the PGM parameter: This option is incorrect. The PGM parameter is used to specify the name of the program to be executed. It is not used for passing values from a job stream to an executable program.

D. All of the above: This option is incorrect. Option A is the only correct option for passing values from a job stream to an executable program. The VALUE parameter is not used for this purpose, and the PGM parameter specifies the name of the program to be executed.

Therefore, the answer is: A

What is concatenating ?

  1. Overriding or adding procedures

  2. Logically connecting input datasets

  3. Overriding a called PROC dsname

  4. All of the above


Correct Option: B

What is the function of DD DISP parameter?

  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

What is the purpose of DD * statement in JCL?

  1. Begins an input data prompt at the system console

  2. Begins an in-stream dataset

  3. Marks the end of a command stream

  4. Includes all datasets within a naming pattern


Correct Option: B

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

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 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, we need to understand the purpose of the DD DUMMY statement in JCL (Job Control Language).

Option A) Marks a deleted DD statement - This option is incorrect. The DD DUMMY statement does not mark a deleted DD statement. It is used to specify no space allocation and no disposition processing.

Option B) Begins an interpreted command stream - This option is incorrect. The DD DUMMY statement is not used to begin an interpreted command stream. It is used in JCL to specify no space allocation and no disposition processing.

Option C) Specifies no space allocation & no disposition processing - This option is correct. The purpose of the DD DUMMY statement is to specify that no space allocation should be performed and no disposition processing should be done. It is typically used for a dummy or placeholder DD statement when a particular data set or file is not required for a specific step in the job.

Option D) Suppress command processing - This option is incorrect. The DD DUMMY statement does not suppress command processing. It is used to specify no space allocation and no disposition processing.

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

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

AI Explanation

To answer this question, you need to understand how a job can send a status message to a TSO (Time Sharing Option) user at its completion.

Option A) STATUS - This option is incorrect. The STATUS command is used to display the status of a job or a job step, but it does not send a status message to a TSO user.

Option B) NOTIFY - This option is correct. The NOTIFY parameter is used in the job control language (JCL) to specify a user or a group of users to be notified when the job completes. The message is sent to the TSO user's message queue.

Option C) ENDMSG - This option is incorrect. The ENDMSG parameter is used in JCL to specify whether or not to send a completion message to the job's initiator. It does not send a status message to a TSO user.

Option D) USER - This option is incorrect. The USER parameter is used in JCL to specify the user ID that the job should run under. It does not send a status message to a TSO user.

The correct answer is B) NOTIFY. This option is correct because the NOTIFY parameter in JCL is used to send a status message to a TSO user at the completion of a job.

CICS manages which of the below?

  1. Only online processes

  2. Neither online nor batch processes

  3. Only batch processes

  4. Both online & batch process


Correct Option: D

CICS itself is a batch job running on the operating system with high priority?

  1. True

  2. False


Correct Option: B
  1. Customer Information Communication System

  2. Customer Information Connecting System

  3. Customer Information Correspondence System

  4. Customer Information Control System


Correct Option: D

CICS acts as an interface between ____ and _____

  1. Operating System ; Kernel

  2. Operating System; Application Programs

  3. Hardware; Software

  4. Middle Tier; Hardware


Correct Option: B

BMS stands for?

  1. Bit Mapping Support

  2. Basic Mapping Standard

  3. Basic Mapping Support

  4. Basic Mutual Support

  5. Base Mapping Support


Correct Option: C
- Hide questions