0

mainframe Online Quiz - 31

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

One job has abended due to SB37 abend code. What should be the solution?

  1. The program is not getting special resource

  2. Input or Output datasets have some space unavailability

  3. The job has abended because of database problem.

  4. None of the above


Correct Option: B

What is the purpose of DD * statement in JCL?

  1. Begins the input data prompt at the system console

  2. Begins an instream dataset

  3. Marks the end of the 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 JCL (Job Control Language).

The DD statement is used to define and describe datasets in JCL. It is primarily used to specify the input and output datasets required for the execution of a job step.

Option A) Begins the input data prompt at the system console - This option is incorrect. The DD statement does not prompt for input data at the system console. It is used to define datasets.

Option B) Begins an instream dataset - This option is correct. The DD statement is used to define an instream dataset, which is a dataset that is defined within the JCL itself rather than being stored on disk. The instream dataset can be used as input or output for a job step.

Option C) Marks the end of the command stream - This option is incorrect. The end of the command stream is marked by the "//" syntax, not the DD statement.

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

The correct answer is B) Begins an instream dataset. This option is correct because the DD statement is used to define an instream dataset within the JCL.

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

  1. STATUS

  2. NOTIFY

  3. ENDMSG

  4. USER


Correct Option: B
Explanation:

The correct answer is B. NOTIFY.

In TSO (Time Sharing Option) or ISPF (Interactive System Productivity Facility), a job can send a status message to the TSO user at the completion of the job using the NOTIFY command.

By specifying the NOTIFY parameter in the job's JCL (Job Control Language) or by using the NOTIFY command within a program, the TSO user will receive a message indicating the completion status of the job once it finishes executing. This allows the user to be notified and stay informed about the job's completion.

Option A (STATUS), Option C (ENDMSG), and Option D (USER) are not valid options for sending a status message to the TSO user at the completion of a job in TSO or ISPF.

So, the correct answer is B. NOTIFY.

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

  1. RETURN

  2. RLSE

  3. CONTIG

  4. CLOSE


Correct Option: B

Where can program check points be stored for use in a restart?

  1. SYSCHK DD statement

  2. CHCKPOINT DD statement

  3. CHKOUT DD statement

  4. CHECK or DD statement


Correct Option: A

What statement marks the end of instream or catalogued procedure?

  1. STREAM

  2. SET

  3. PROC

  4. PEND


Correct Option: D

AI Explanation

To answer this question, you need to understand the syntax and structure of programming languages.

The correct answer is D) PEND. This statement marks the end of an instream or catalogued procedure.

In some programming languages, such as IBM's Job Control Language (JCL), the PEND statement is used to indicate the end of a procedure. It is usually placed at the end of the procedure to signal that there are no more statements to be executed within that procedure.

Options A) STREAM, B) SET, and C) PROC are not typically used to mark the end of an instream or catalogued procedure. STREAM is often used to specify input/output streams in some programming languages. SET is commonly used to assign values to variables. PROC is usually used to define or invoke a procedure.

Therefore, the correct statement that marks the end of an instream or catalogued procedure is option D) PEND.

How can an instream dataset be terminated

  1. //

  2. //*

  3. /*

  4. None of the above


Correct Option: C

What is the maximum size of single line of JCL?

  1. 71

  2. 60

  3. 55

  4. 80


Correct Option: A

How can return codes be tested before execution of the job step?

  1. Through RC

  2. Through CODE

  3. Through COND

  4. Through RETURNCD


Correct Option: A

Must tape dataset defintion include VOL=SER specification?

  1. Yes

  2. No

  3. only for uncatalogued datasets

  4. Only for catalogued dataset


Correct Option: C

What statement can be used to send the data to another MVS JES3 node?

  1. LINK

  2. CONNECT

  3. XMIT

  4. SEND


Correct Option: C

which of the following is used to comment out a statement?

  1. //

  2. /*

  3. /+

  4. +/


Correct Option: B

Level Numbers that should be coded in 08 - 11 column

  1. 88

  2. 77

  3. 01

  4. 66


Correct Option: B,C

Program Name:

  1. Can have Letters, 0 - 9, Hyphen and cannot start or end with Hyphen, Maximum of 30 characters

  2. Can have Letters, 0 - 9 and should start with Letter, Maximum of 30 characters

  3. Can have Letters, 0 - 9 and should start with Letter, Maximum of 8 characters

  4. Can have Letters, 0 - 9, Hyphen and cannot start or end with Hyphen, Maximum of 8 characters


Correct Option: C

Dataname Rule:

  1. contain at least one character, but not more than 30 character

  2. contain at least one alphabetic character

  3. Can begin or end with a hyphen

  4. Names are not case-sensitive: TotalPay is the same as totalpay, Totalpay or TOTALPAY

  5. constructed from the Letters, 0 - 9, and hyphen


Correct Option: A,B,D,E

Any sentence or entry that requires more than one line, must be continued in:

  1. Area B of the next line

  2. columns 8 through 11 of the next line

  3. Area A of the next line

  4. columns 12 through 72 of the next line


Correct Option: A,D

We Can browse or edit the GDG dataset if it is a tape entry.

  1. True

  2. False


Correct Option: B

What are the conditions for concatenating DD Statements?

  1. Dataset must be of same type (Disk or tape)

  2. Should not be a partioned dataset

  3. The dataset with the largest Block SIze must be listed first

  4. Record lenght of all the dataset should be the same


Correct Option: A,C

What are some of the rules involved in overriding parameters on the EXEC statements in a procedure

  1. A PGM parameter can be overriden

  2. If a parameter, which does not exist, is coded on the EXEC statement, the parameter will be added

  3. The parameter for each step need to be coded in the same order as they appear on the procedure EXEC statement

  4. All parameters for each step must be coded in order.


Correct Option: B,D

Select the statements form the below list, which are not true for overriding concatenated DD statements in PROC.

  1. The overriding DD statement need not be in a same order as the concatenated DD staements.

  2. To override only last DD statement in a concatenation, code only one overriding statement

  3. to leave a concatenated staetement unchanged, code its corresponding DD statement with a blank operand field

  4. Code a DDname against all the overiding DD statements.


Correct Option: A,B,D
- Hide questions