InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What is the meaning of DISP=OLD and DISP=SHR? |
|
Answer» DISP=OLD -> This refers to a dataset that has already been created. DISP=SHR -> It MEANS that more than one user may SHARE DATA. However, it is a read-only file. |
|
| 2. |
What are the hierarchy levels in JCL? |
|
Answer» Every STATEMENT of JCL consists of the HIERARCHY levels:
Example: //STEP1 EXEC PGM=MYPROGRAM,TIME=1440 //* JCL Statement StructureHere,
|
|
| 3. |
Name different JCL statements that are not permitted in the procedures. |
|
Answer» The following JCL statements are not PERMITTED in the PROCEDURE: |
|
| 4. |
How can we convert a FB (Fixed block) file to VB (Variable block) file using a sort program? |
|
Answer» By using the FTOV option in SORT, you can convert a FB file to a VB file. Input RECORDS of fixed LENGTH are converted to output records of VARIABLE length using this parameter. VB files should have 4 extra bytes for RDW (Record Descriptor Word). Accordingly, the length of the record in the VB file is the RDW (4 bytes) + the actual length of the record. SORT parameters: SORT FIELDS=COPY OUTFIL FNAMES=SORTOUT1,FTOVHere, SORTOUT1 is the VB output file. If you input an 80-byte FB file, then the output will be an 84-byte VB file (4 bytes for RDW). |
|
| 5. |
Explain Msglevel parameter and its significance. |
|
Answer» With the Msglevel parameter, you can control or set the listing of the JOB output for each specific job. It controls the way ALLOCATION messages, and termination messages will appear in job output (SYSOUT). Msglevel can be used to inform JCL about the messages we wish to print. Syntax: MSGLEVEL=([STATEMENTS][messages])Here,
|
|
| 6. |
What is the time parameter in JCL? Explain what does TIME=1440 mean? |
|
Answer» JCL TIME is an optional Keyword parameter that SPECIFIES how long a job MAY use the processor. In simple words, TIME specifies the max CPU usage time that can be used for the job's execution. It is possible to code the TIME parameter at the Job and Step levels as well. Once the specified execution time is reached, the system will stop the JOB execution automatically. Thus, the TIME parameter will inform OS of the maximum CPU utilization time, and once the specified time has been consumed by the job, OS will cancel the job automatically. Additional options for TIME Parameter
It indicates that the job or step has no time limit and can be executed indefinitely.
This means the job or step can use the most CPU time possible. |
|
| 7. |
What is a temporary dataset in JCL? How to create a temporary dataset? |
|
Answer» Temporary datasets are datasets (FILE holding one or more records) that are only needed for the DURATION of the job and are deleted when the job is completed. They need storage only for the job duration and once the job is completed, they are deleted. These datasets typically are represented as DSN=&&name or simply without specifying a DSN. By using them, we can FORWARD the output of one step to another step in the same job. |
|
| 8. |
What are symbolic parameters and why is it required? |
|
Answer» In general, any parameter that varies with every execution of a program should be considered a symbolic parameter. By using symbolic parameters, the procedure becomes more flexible. The procedure will not have to be altered each and every time a small and recurring change is made at a particular place. In symbolic parameters, an ampersand (&) PRECEDES the STRING of 1 to 7 alphameric characters. It is mandatory to put an alphabetic character after &. JCL statements do not permit symbolic parameters to appear in the name or operation fields; they may only appear in the operand field. On a PROC or EXEC statement, if more than ONE symbolic parameter is ASSIGNED, only the first is used. |
|
| 9. |
Explain what you mean by Generation data group (GDG). |
|
Answer» Generation Data Group (GDG) is an important concept in JCL. GDG consists of groups of RELATED data sets arranged chronologically. Each of these related sets shares a unique name. A generation number and a version number are added to the end of the name of each data set within a group to make it unique. Syntax: ABC.PQR.XYZ.GnnnnVmmHere, the GDG BASE is ABC.PRQ.XYZ. G represents the Generation number (Value range 0000 – 9999), and V represents the Version number (Value range 00 – 99). Example: MYLIB.URMI.SAMPLE.G0001V00MYLIB.URMI.SAMPLE.G0002V00, and so on.Here, the GDG base is MYLIB.URMI.SAMPLE. |
|
| 10. |
State difference between JOBLIB and the STEPLIB statements. |
|
Answer» The mainframe OS has to search for and locate the program you specify in a JCL statement in order to run it. In order to locate programs, a private library must be SEARCHED before the system program library. If you wish to run a program residing in a private program library, you must either specify the JOBLIB DD (Data definition) statement or the STEPLIB DD (Data Definition) statement to enable OS to locate the program successfully. Both JOBLIB and STEPLIB are DD (Data definition) STATEMENTS. Although JOBLIB DD and STEPLIB DD specify a private library as the location of a SPECIFIED program, each will behave differently for OS search. 1. JOBLIB Statement: Every step of the JOB is searched in the private libraries according to JOBLIB DD. The location of the program to be executed in JCL is referenced by it. This statement follows the JOB statement, but before the EXEC statement. It is only applicable to procedures and programs running in-stream. Syntax: //JOBLIB DD DSN=dsnnameHere,
2. STEPLIB statement: The only single step of the JOB is searched in the private libraries according to STEPLIB. The location of the program to be executed within a Job Step is referenced by it. This statement follows the EXEC statement, but before the DD statement of the job step. Syntax: //STEPLIB DD DSN=dsnnameHere,
|
|
| 11. |
Explain some of the commonly used parameters in the EXEC statement. |
|
Answer» EXEC stands for EXECUTION. The EXEC statement specifies a program/job step, as well as utilities and procedures to be executed. Syntax: //Step-name EXEC Positional-param, Keyword-paramSome of the COMMONLY used positional and keyword parameters in EXEC statement INCLUDE:
|
|
| 12. |
What are different parameters for DD (Data Definition) statement? |
|
Answer» Some of the parameters for the DD statement are listed below. BASED on your needs, you can select one or more parameters separated by commas. 1. DSN Parameter: It is used to specify the name of a newly created or existing dataset. There can be a total of 44 characters in the DSN value. The sub-names can be 1 to 8 characters in length, separated by periods. Syntax: DSN=Physical Dataset NameHere,
2. DISP Parameter: "DISP" stands for Disposition, a keyword parameter used in JCL to describe a data set's status to OS. Essentially, it indicates how the OS should handle the dataset after JOB/STEP termination. It contains three sub-parameters: status, normal and abnormal termination activities of the JOB. Syntax: DISP=({status},{normal Disposition},{abnormal Disposition})Here,
3. DCB Parameter: DCB (Data control block) parameter provides information about the physical characteristics of a dataset. For newly created datasets, this parameter is required. Syntax: DCB=<List of parameters>Here,
4. SPACE Parameter: The SPACE parameter indicates how much space is required to store a dataset on a Direct Access Storage Disk. Syntax: SPACE=(Unit of Space,(Primary,Secondary,Directory),RLSE,CONTIG,ROUND)Here,
5. SYSOUT Parameter: We have discussed so far the parameters of DD statements that correspond to data stored in datasets. According to the class specified, SYSOUT directs the data to the output device. Syntax: SYSOUT=class |
|
| 13. |
State the difference between positional parameter and keyword parameter in JCL. |
Answer»
|
|
| 14. |
Explain different types of Job control statements or JCL statements. |
|
Answer» For each job that you submit, you need to specify where the input should be found, how it should be processed, and what should be done with the output. The INFORMATION is conveyed to MVS (Multiple Virtual Storage) through a set of statements called job control statements in JCL. MVS can glean a great deal of information from JCL's extensive set of job control statements. A very small set of these control statements can, however, be used to run most jobs. In time, you may discover that you only need to know the DETAILS of a few of the control statements as you become familiar with the jobs you TYPICALLY run. Types of Job Control Statements Job control statements can be classified into the following three types:
Syntax: //Job-name JOB Positional-param, Keyword-paramHere,
Example: //JOB011 JOB (456),'INTERVIEWBIT', // CLASS=A
Syntax: //Step-name EXEC Positional-param, Keyword-paramHere,
Example: //STEP01 EXEC PGM=INTERVIEWBIT
Syntax: //DD-name DD ParametersHere,
Example: //STEPLIB DD DSN=hlq.xxxxxxxx.CDBALOAD,DISP=SHR |
|
| 15. |
What are the benefits of using JCL? |
|
Answer» JCL offers the following advantages:
|
|