in jcl you are having JCLLIB and STEPLIB what happens

Answers were Sorted based on User's Feedback



in jcl you are having JCLLIB and STEPLIB what happens..

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

in jcl you are having JCLLIB and STEPLIB what happens..

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

in jcl you are having JCLLIB and STEPLIB what happens..

Answer / kishore

STEPLIB will override for that step only not for entire job

Is This Answer Correct ?    14 Yes 0 No

in jcl you are having JCLLIB and STEPLIB what happens..

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

in jcl you are having JCLLIB and STEPLIB what happens..

Answer / captain evidence

JOB uses JCLLIB to find user's procedures and STEPLIB to
find user's programs

Is This Answer Correct ?    5 Yes 0 No

in jcl you are having JCLLIB and STEPLIB what happens..

Answer / vinay sonar

STEPLIB will take precidence over JOBLIB

Is This Answer Correct ?    2 Yes 0 No

in jcl you are having JCLLIB and STEPLIB what happens..

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

in jcl you are having JCLLIB and STEPLIB what happens..

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

in jcl you are having JCLLIB and STEPLIB what happens..

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

in jcl you are having JCLLIB and STEPLIB what happens..

Answer / sangeetha

BUT WHAT WILL HAPPEN TO JOBLIB, CAN JOBLIB WILL OVERRIDE
STEPLIB?

Is This Answer Correct ?    2 Yes 29 No

Post New Answer

More JCL Interview Questions

how to create gdg with out using idcams utility

8 Answers   DSRC,


mainframe questions like basic&depth

0 Answers   TetraSoft,


Hi, I have a requirement File A : I have 6 records out of which 4 are same. File B: I have 8 records out of 6 records are same. The 4 records in FILEA and 6 records in FILE B are same. If we substract we will get two records, I need these two records in output file This is because to remove the duplicates from the database. Through easytrieve we can compare but for that there should not duplicates, but in my file I have duplicates. Thanks in advance!!

2 Answers  


Suppose I have five jobs to do. But I want to hold one?

0 Answers  


what is the general use of PARM? Give an explanation about the system defined parameters that could be passed through this PARM like XREF,LIST,LET,APOST,RENT etc..

3 Answers   Cognizant,






How do you send the output of a COBOL program to a member of a PDS?

7 Answers  


what is the sortcard for comparing two files with a field key and get the duplicates in onefile and noduplicates in another file

3 Answers   Virtusa,


Can we change a FB file to VB file in JCL? Please help

1 Answers  


How to identify where file is empty or not? How many ways are there to identifying?

3 Answers   CTS,


How to find the number of duplicates in a file using Sort?

4 Answers   Fidelity,


Say I have a file with 12 records. Each record has the name of the month. I have to append data in these 12 records into 1 record. How is it possible?

2 Answers   CTS,


How to identify in JCL that an input file is empty without reading it?

4 Answers   L&T,


Categories