Best Cobol And DB2 Interview Questions Part – 6
Explain What Exec Statement Is And What Is The Syntax Of Exec Statement Used In Jcl?
EXEC statement holds the job step program or procedure information. The syntax of EXEC statement used in JCL is
//Step-name EXEC Positional-param, Keyword-param
Explain What Are Jcllib And Steplib In Jcl?
Both libraries specifies the private libraries that should be searched before the default system libraries does in order to locate a program to be executed.
JCLLIB identifies the libraries that the system will search for include groups or procedures named in EXEC statements
JOBLIB applies to all steps in the job while STEPLIB applies only to the particular step.
Explain What Is Dsn Parameter And Disp Parameter Is Used For?
DISP parameter:
It is used to specify the disposition of dataset which is coded on DSN parameter
DSN parameter:
It is used to specify the data set name
Explain What Jcl Procedures?
The JCL Procedures are nothing but a set of statements inside a JCL, grouped together to perform a particular function. Procedure can be used to achieve parallel execution of a program using multiple input files.
What Is Cataloged Procedures?
From the JCL, when the procedure is separated out and coded in a different data store, then it is referred as a Cataloged Procedure.
Mention What Happens When Cond Is Coded In Job Statement And When Cond Is Coded Inside Exec Statement?
When COND is coded in JOB statement, the condition is tested for every job step. When the condition is true for any particular job step, it is byepassed along with the job steps.
When COND is coded inside EXEC statement of a job step, and the condition is true, then only that particular job step is bypassed, and execution will be carried out from the next job step
Mention What Is Dsn In Jcl And What Are The Parameters To Declare The Dsn?
In JCL, a dataset name determines the name of a file and it is referred by “DSN”.
The DSN value can comprise of sub-names each of 1 to 8 characters length, separated by periods and of total length of 44 characters (alphanumeric).
Explain How Would You Create A Temporary Dataset? And Where Will You Use Them?
Temporary dataset can by created either by specifying the temporary file indicator as in SDN=&&Temp or by not specifying any DSName.
Explain What Is Soc4 Error?
SOC4 error is for storage violation error and can be due to many reasons. For example, invalid address due to script error.
Explain In Ways Data Can Be Passed To A Cobol Program From Jcl?
A data can be passed to a COBOL program from JCL through
Files
SYSIN DD statement
PARM parameter
Explain How Can You Access An Uncataloged Dataset In A Jcl?
You can access an uncataloged dataset in a JCL by using the VOL and UNIT serial parameters in the dataset DD statement.