|
View previous topic :: View next topic
|
| Author |
Message |
pingte
Active User

Joined: 03 Dec 2005 Posts: 120 Location: india
|
|
|
|
i have a JCL which calls a cataloged procedure (A).
The JCL has a JOBLIB specified.
In Step1 of the cataloged proc (A), there is a STEPLIB.
Step 1 executes program B.
If B is not found in STEPLIB of Step1 of A, will the JCL search for the pgm B in the JOBLIB of the JCL or, will it abend? |
|
| Back to top |
|
 |
rz061m
New User

Joined: 03 Mar 2006 Posts: 48 Location: Chennai
|
|
|
|
Hi,
If you specify STEPLIb, then the program will ignore the JOBLIB. And if the program is not found in STEPLIB, the program will abend.
Thanks,
Karthik. P |
|
| Back to top |
|
 |
pcoreddy
New User
Joined: 14 Mar 2007 Posts: 24 Location: Mysore
|
|
|
|
| it will abend |
|
| Back to top |
|
 |
expat
Global Moderator

Joined: 14 Mar 2007 Posts: 8798 Location: Welsh Wales
|
|
|
|
I thought that the STEPLIB would override the JOBLIB, but in the case of the module not found in STEPLIB then JOBLIB would be searched.
OK, so I'm not a programmer, so how about asking pingte to perform a test and let us all know the definitive answer. After all, it is his question. |
|
| Back to top |
|
 |
agkshirsagar
Active Member

Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
| It will abend with s806, it will not search in JOBLIB when STEPLIB is specified. |
|
| Back to top |
|
 |
rameshfoa
New User

Joined: 05 Apr 2007 Posts: 27 Location: chennai
|
|
|
|
| yes..the program will abend with s806...if the module not found in all the concatenated libraries in steplib |
|
| Back to top |
|
 |
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1056 Location: Richmond, Virginia
|
|
|
|
| In addition - the fact that you are using a PROC is irrelevant. |
|
| Back to top |
|
 |
|
|