What happens if both STEPLIB and JOBLIB statements are specified?
Answer»
JOBLIB is a DD statement that determines the program location that is CALLED EXEC statement. The statement APPLIES to all the steps of the entire JOB but can not be used for catalogued procedures.
STEPLIB is similar to JOBLIB and is used for determining the dataset where the program is present. It applies only to the step that it is part of and not the whole job. This can be used at any step in the job and also in catalogued procedures.
If both STEPLIB and JOBLIB are used, then priority is given to STEPLIB thereby ignoring JOBLIB by the system.