Steplib, Joblib, Jcllib, and Proclib
Question: What is the difference between steplib,joblib,jcllib and when and where should each be used?
Rohit Kulkarni
Answer: The joblib and steplib dd statements are used to specify alternate libraries where programs can be loaded from.
- joblib is used at the start of the jcl to specify an override library to use for the entire job it is placed immediately after the job statement and applies to the whole job
- steplib is used in an individual step in the job it is placed immediately after the exec statement to which it applies and is used only for that step.
jcllib and proclib are used to specify where jcl is to be loaded from rather than programs. jcllib is used with the INCLUDE MEMBER statement to specify the library where pieces of jcl are held that can be included into a number of jobs. I have not seen this actually used, more often rather than separating out parts of job steps and including them it is more usual to extract out complete job steps into separate procedures stored in a proc library. proclib is the dd statement to override where to get procedures from.



