IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

program not found in steplib but found in joblib


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Prabha
Warnings : 2

New User


Joined: 05 Dec 2005
Posts: 79

PostPosted: Sun Jun 24, 2007 11:36 am
Reply with quote

Hi,

I have coded both job lib and step lib.

Step lib will override joblib right???

\\jobname job ..
\\joblib dd dsn=joblib dataset
\\ step exec pgm =xxx
\\steplib dd dsn=steplib dataset

If my pgm is not available in step lib dataset, in this case what will happen?? Will it search in job lib dataset?? I dont think so..

Because If steplib overrides joblib means, then it should show pgm not found right??

Kindly help me out this.
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Sun Jun 24, 2007 11:54 am
Reply with quote

If you think something like this, then just try it out to confirm.

Steplib is not actually override joblib, you are just changing the search preference for that step.
If you give steplib then the program will be searched first in steplib and if not found then it looks in joblib.
Back to top
View user's profile Send private message
Prabha
Warnings : 2

New User


Joined: 05 Dec 2005
Posts: 79

PostPosted: Sun Jun 24, 2007 4:05 pm
Reply with quote

Thank u !!!
Back to top
View user's profile Send private message
mohanbabu_ib
Warnings : 1

New User


Joined: 22 Jun 2007
Posts: 8
Location: chennai

PostPosted: Sun Jun 24, 2007 8:21 pm
Reply with quote

Hi,

When you override the joblib using steplib the jcl will search for the program in steplib only and if it is not there, then the job will abend.

I have experienced similar abends like this. In such case we need to include the pds (where the module is present) in the joblib, in the steplib itself.

something of this sort..

//steplib dd dsn=PDS to override the joblib
// dd dsn=PDS specified in the joblib.

Hope this will help.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts How I Found a Bug in a FORTRAN Compiler All Other Mainframe Topics 4
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
Search our Forums:

Back to Top