in jcl you are having JCLLIB and STEPLIB what happens
Answers were Sorted based on User's Feedback
Answer / sj@iy
JCLLIB - Gives the library for cataloged procedures
STEPLIB - Coded in the individual steps. It gives the
library where the program specified in the EXEC statement
for that particular step should be searched for.
JOBLIB - Coded after the JOB statement. It specifies the
library where all programs specified in the EXEC statements
of the entire JCL should be searched for.
Having both JOBLIB and STEPLIB, the STEPLIB will override
JOBLIB for that particular step where STEPLIB is given.
Having both JCLLIB and STEPLIB shouldnt have any co-
relation as one is concerned with cataloged procedures and
the other with the programs.
Please verify answer
Is This Answer Correct ? | 27 Yes | 1 No |
Answer / divyanshu kumar
steplib will override jcllib for that step. whereas if no
steplib is given for a certain step in that jcl .Then
joblib will come into play.
Is This Answer Correct ? | 31 Yes | 8 No |
Answer / kishore
STEPLIB will override for that step only not for entire job
Is This Answer Correct ? | 14 Yes | 0 No |
Answer / rks
if you mentioned jcllib in jcl that u r using cataloged
procs.
thats it nothing happen to steplib .
steplib will override joblib but not jcllib.
Is This Answer Correct ? | 14 Yes | 0 No |
JOB uses JCLLIB to find user's procedures and STEPLIB to
find user's programs
Is This Answer Correct ? | 5 Yes | 0 No |
Answer / ranbeer
If you code both a JOBLIB DD and STEPLIB DD statement in
the same job, the STEPLIB DD statement overrides the JOBLIB
statement only for that step. For that step only, the
system ignores JOBLIB and first searches the private
libraries specified on the STEPLIB DD statement. If the
system does not find the program in the private libraries,
it then searches the system libraries. Then, if z/OS still
has not found the program, the system abnormally ends the
job step.
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / anonymous
I 've faced such situation where in the Load module is not in Steplib(private lib) but it was there in Joblib (system lib ) but still the job abends with load module not found issue S806 .
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sreedhar naidu dhekodna
First STEPLIB will override the JCLLIB. If the required
module is found then the JOBLIB won't be considered or if
the required module is not found in STEPLIB librarie(s)
then again the job will search for module in JOBLIB as well.
Is This Answer Correct ? | 0 Yes | 6 No |
Answer / sangeetha
BUT WHAT WILL HAPPEN TO JOBLIB, CAN JOBLIB WILL OVERRIDE
STEPLIB?
Is This Answer Correct ? | 2 Yes | 29 No |
What happens if both JOBLIB and STEPLIB is specified ?
Do we need to code DCB parameters when using DISP position as MOD?
i have two flat files.i want to select one record from that file by using jcl.for example file1 contains emp no,name,joining date. file2 has same details.emp no is primary key. i will give empno.that emp details send to outfile.please let me know if any one knows it.give sample code.
Hi, all Suppose i have 10 step in a job (s1,s2,s3,...s10) i want to execute step9 first and then step3 and i used the DPRTY for these steps. so what will happen to other steps? Will the get executed or only these two steps get executed?
How to pass the temp dataset form one JOB step to another?
how to set dependancy for jobs?
in catalog procedure i have step1 dd dsn=filea dd dsn=fileb dd dsn=filec ur concatenaning all the files. but i need to override fileb with file 2 ? can anyone give the ans pls for ths
what do you mean by include statement in jcl?
My requirement is : How to populate a empty PS/flat file with ONLY spaces in the first line. You should not use any input dataset to do this. I'm not sure whether you may use any utility for this purpose?
Is acct parameter mandatory?
In a proc i will concatinate 4 dd statements.i want to overide 3 dd statement through jcl how?
Are all (i), (ii), (iii), (iv) of the below are VALID to reference a temporary dataset ? STEP2 DD1 DD DSN = &&TEMP STEP3 DD2 DD (i) DSN = TEMP (ii) DSN = *.TEMP (iii) DSN = *.STEP1.DD1 (iv) DSN = *.STEP1.DD1.ONE