1.
What is the function of DD DISP parameter?
Correct Answer
D. All of the above
Explanation
The DD DISP parameter is used to specify what the system should do with the dataset after the step terminates, whether it is a normal termination or an abnormal termination. It can be used to describe the status of the dataset and determine the actions to be taken accordingly. Therefore, the correct answer is "All of the above" as all the given options are valid functions of the DD DISP parameter.
2.
How is the record format of an output dataset specified?
Correct Answer
C. RECFM parameter
Explanation
The record format of an output dataset is specified using the RECFM parameter. This parameter allows the user to define the format of the records in the dataset, such as fixed length or variable length. By specifying the appropriate RECFM parameter, the user can ensure that the output dataset is formatted correctly for their needs.
3.
What is the purpose of DD * statement in JCL?
Correct Answer
A. Begins an input data prompt at the system console
Explanation
The purpose of the DD * statement in JCL is to begin an input data prompt at the system console. This allows the user to enter data directly from the console during job execution.
4.
A DD statement has 2 types of parameters. Name them?
Correct Answer
A. Positional, Keyword
Explanation
A DD statement has two types of parameters: positional and keyword. Positional parameters are defined by their position in the statement and must be specified in a specific order. Keyword parameters, on the other hand, are identified by a keyword followed by an equal sign and a value, allowing them to be specified in any order.
5.
What is the function of JOB statement in JCL ?
Correct Answer
C. Marks the beginning of a job & assigns a name to the job
Explanation
The JOB statement in JCL is used to mark the beginning of a job and assign a name to the job. It is the first statement in a JCL and is required for each job. The name assigned to the job is used to identify it in system logs and output listings.
6.
How can a job send a status message to a TSO user at the completion of a job ?
Correct Answer
B. NOTIFY
Explanation
The job can send a status message to a TSO user at the completion of a job by using the NOTIFY keyword. This keyword is used in the job control language (JCL) to specify the user or users who should receive a notification when the job completes. By specifying the NOTIFY keyword followed by the user's ID, the job can send a status message to that user. This allows the user to be informed of the job's completion and any relevant information or actions that need to be taken.
7.
What is the function of a DD statement ?
Correct Answer
A. Identifies & describes a dataset
Explanation
A DD statement in computer programming is used to identify and describe a dataset. It is commonly used in mainframe systems, such as IBM's z/OS, to define and allocate datasets for input/output operations. The DD statement specifies the name, location, and attributes of the dataset, allowing the program to access and manipulate the data. By using a DD statement, the program can easily identify and describe the dataset it needs to work with, ensuring proper data management and processing.
8.
When output dataset space is required, what quantity categories are used ?
Correct Answer
A. Primary, Secondary, Directory
Explanation
The quantity categories used when output dataset space is required are Primary, Secondary, and Directory. These categories refer to different storage spaces or areas within the dataset. Primary refers to the main or initial storage space, Secondary refers to additional storage space if needed, and Directory refers to the space used for organizing and managing the dataset.
9.
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 ?
Correct Answer
C. EXEC
Explanation
The 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 is "EXEC". This statement is commonly used in job control language (JCL) to initiate a specific task or program within a larger job. It provides the necessary information for the system to locate and execute the desired program or procedure.
10.
How can unused space allocation be returned to the system when a dataset is closed ?
Correct Answer
B. RLSE
Explanation
When a dataset is closed, any unused space allocation can be returned to the system by using the RLSE command. This command releases any unused space back to the system, making it available for other processes or datasets.
11.
Can an individual step be restricted from using all the job’s allowed CPU time ?
Correct Answer
D. Through the STEPTIME parameter
Explanation
The STEPTIME parameter allows an individual step to be restricted from using all the job's allowed CPU time. This parameter can be used to set a time limit for each step in a job, preventing it from using more CPU time than specified. By setting a limit on the STEPTIME parameter, the individual step can be restricted from using all the job's allowed CPU time.
12.
Where can program checkpoints be stored for use in a restart ?
Correct Answer
B. SYSCHK DD statement
Explanation
Program checkpoints can be stored for use in a restart using the SYSCHK DD statement. The SYSCHK DD statement is used to specify the dataset where program checkpoints are stored. By storing checkpoints in this dataset, the program can be restarted from the last checkpoint in case of any failure or interruption. This allows for the program to resume execution from the point of failure, ensuring data integrity and minimizing the impact of any disruptions.
13.
How can the disposition of sysout datasets be set for an entire jobstream ?
Correct Answer
A. SYSOUT parameter
Explanation
The correct answer is the SYSOUT parameter. The SYSOUT parameter is used to specify the disposition of the output datasets for an entire jobstream. It allows the user to define where the output will be directed, such as to a specific dataset or to a printer. By setting the SYSOUT parameter appropriately, the user can control where the output of each step in the jobstream will be directed.
14.
What statement marks the end of an in-stream procedure ?
Correct Answer
D. PEND
Explanation
The statement "PEND" marks the end of an in-stream procedure.
15.
What is the function of DD name parameter with a 2 part structure; Audit.Report ?
Correct Answer
B. Override the Report DD statement in the Audit procedure
Explanation
The function of the DD name parameter with a 2 part structure; Audit.Report is to override the Report DD statement in the Audit procedure. This means that the Audit procedure will use the Audit.Report dataset instead of the Report dataset specified in the DD statement.
16.
Which DD parameters are required ?
Correct Answer
D. Dsname, DISP, SPACE
Explanation
The correct answer is Dsname, DISP, SPACE. These parameters are required in order to specify the dataset name, the disposition of the dataset (whether it is new or existing), and the amount of space allocated for the dataset. The other options may be optional, but these three parameters are necessary for defining the dataset.
17.
How can an in-stream dataset be terminated?
Correct Answer
D. None of the above
18.
What is the function of the DD DCB keyword?
Correct Answer
A. Begins the subparameters of the DCB
Explanation
The DD DCB keyword is used to begin the subparameters of the DCB. DCB stands for Data Control Block, which is a data structure used by operating systems to define the attributes of a dataset. The subparameters of the DCB provide additional information about the dataset, such as record format, block size, and data organization. By using the DD DCB keyword, the programmer can specify and define these subparameters for the dataset.
19.
What is the maximum length of a single line of JCL ?
Correct Answer
A. 71 bytes
Explanation
The maximum length of a single line of JCL is 71 bytes. This is because JCL (Job Control Language) is a scripting language used on mainframe computers to instruct the operating system on how to run a batch job. Each line of JCL can contain up to 71 characters, including any comments or control statements. This limit ensures that the JCL remains readable and manageable.
20.
What is the purpose of DD DUMMY statement ?
Correct Answer
D. Suppress command processing
Explanation
The purpose of the DD DUMMY statement is to suppress command processing. This means that when the DD DUMMY statement is used, any commands following it will not be executed. This can be useful in situations where a placeholder statement is needed in a program or script, but no actual processing or execution is desired. By using the DD DUMMY statement, the program can continue running without any interruption or unwanted command execution.