Page 1 of 1

Joblib and steplib being used...

PostPosted: Fri Oct 09, 2009 5:41 pm
by Pebble
Hi,

I have a job which has both Joblib and Steplib.
Suppose if the steplib is empty ( No dataset is given), What happens to the job ?

Re: Joblib and steplib being used...

PostPosted: Fri Oct 09, 2009 6:15 pm
by ananth86
Pebble wrote:Suppose if the steplib is empty ( No dataset is given), What happens to the job ?


If the Steplib is empty then I think there is no need of that statement in your JCL. Just remove it.
Then, Find where your Program is present,
1. if ur program is present in the default system library the JCL should run fine.
2. if ur program is not in the default system library... go and find it, and add it in either ur Joblib or Steplib.

Correct me if I m wrong :|

Re: Joblib and steplib being used...

PostPosted: Sat Oct 10, 2009 12:14 am
by dick scherrer
Hello,

Suppose if the steplib is empty ( No dataset is given),
How do you have a STEPLIB with no dataset given?

Suggest you post the actual jcl. . .

Re: Joblib and steplib being used...

PostPosted: Tue Oct 13, 2009 12:04 am
by nishantsinghal
then it will consider the JOBLIB.

Re: Joblib and steplib being used...

PostPosted: Tue Oct 13, 2009 12:26 am
by dick scherrer
Hello and welcome to the forum,

then it will consider the JOBLIB.
What does this reply to?

We still need Pebble to provide the requested info. . .

As mentioned before - if no dataset is given, how can this be a steplib. . . :?

Re: Joblib and steplib being used...

PostPosted: Fri Oct 16, 2009 1:25 pm
by Pebble
Hello everyone,

I faced this question in an interview. So, I don't have the actual jcl which Dick has asked for.
Tried saying this answer to the interviewer : "When Steplib is empty, Joblib will be considered".
I was told that my answer was wrong.

Pebble.

Re: Joblib and steplib being used...

PostPosted: Fri Oct 16, 2009 2:20 pm
by swd
If this literally means that the steplib was empty (i.e. a library is specified but there are no members on the load library), then if a steplib is specified the joblib will be ignored, so I assume the job will abend because the program can't be found. I'd have to try it to be certain though!

http://publibz.boulder.ibm.com/cgi-bin/ ... 2151&CASE=

Re: Joblib and steplib being used...

PostPosted: Sat Oct 17, 2009 12:06 am
by dick scherrer
Hello,

"When Steplib is empty, Joblib will be considered".
I was told that my answer was wrong.
True, that is incorrect. . . If a steplib is mentioned in a step, the joblib will not be searched. An additional wrinkle is that if the module is in the link list, it will be executed even if the steplib is "empty".

IMHO, i believe the question is somewhat inappropriate :(