Libraries IQ for Experienced


STEPLIB -

What is STEPLIB? What is it used for?

It is used to specify user-defined load library at the step level. When the job is submitted for execution, the system will search these libraries to find the load module of the program running at the step.

Is STEPLIB mandatory?

Optional.

If STEPLIB is not coded, what will happen when we try to execute a program?

If STEPLIB is not coded, the system searches the program load in system libraries.

JOBLIB -

What is JOBLIB? What is it used for?

It is used to specify user-defined load library at the job level. When the job is submitted for execution, the system will search these libraries to find the load module of the program running at each step.

Is JOBLIB mandatory?

Optional.

If JOBLIB is not coded, what will happen when we try to execute a program?

If JOBLIB is not coded, the system searches the program load in system libraries.

JCLLIB -

What is the significance of JCLLIB?

It is used to specify the private libraries that contain the cataloged procedures.

PROCLIB -

What is the significance of PROCLIB?

It is used to specify a user-defined library where commonly used procedures are stored. It is a collection of reusable procedures, also known as cataloged procedures, that multiple jobs can call.

How to change default PROCLIB?

We can specify the new library as first entry in JCLLIB ORDER=().

COPYLIB -

What is the significance of COPYLIB?

It is is used to specify the copybook library in the compilation step of the JCL. It is a PDS, and each member contains the copybook layout that is used by many application programs.

Common Questions -

What is order of searching of the libraries in a JCL?

First checks in STEPLIB of the step. Secondly, checks the libraries in the same order how they coded in JCLLIB.

What happens if both JOBLIB and STEPLIB is specified?

For the perticular step, STEPLIB is considered.

State difference between JOBLIB and the STEPLIB statements?

JOBLIB applies to all the steps of the JCL. STEPLIB applies to one perticular step where it coded.

Which statement is used to identify the private libraries in JOB?

JCLLIB and STEPLIB.

Frequently Asked Questions -

Explain the difference between JOBLIB and the STEPLIB statements?
What is the difference between the JOBLIB and the STEPLIB statements?
When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?