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

Which loadlib will be used.


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

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Wed Sep 28, 2011 5:43 pm
Reply with quote

Hi,

If in the JCL, we have concatenated 3-4 loadlibs in JOBLIB parameter.
When the JCL gets submitted , then how can we check from which loadlib the program was picked up?

Example
Code:


//JOB0 JOB (DSN),GYLBHARAT,CLASS=Z,MSGLEVEL=(1,1),             
// MSGCLASS=L,NOTIFY=&SYSUID
//*                                                               
//JOBLIB   DD  DISP=SHR,DSN=HLQ.MODE.UNIT.LOADLIB             
//         DD  DISP=SHR,DSN=HLQ.MODE.TEST.LOADLIB             
//         DD  DISP=SHR,DSN=HLQ.MODE.PROD.LOADLIB             
//*                                                               
//*                                                               
//STEP001   EXEC PGM=COBOL12                                       
//*                                                               
//INPUT01   DD DSN=HLQ.MODE.INPUT,DISP=SHR         
//*                                                               
//OUTPUT01  DD DSN=HLQ.MODE.OUTPUT,                   
//             DISP=(NEW,CATLG,DELETE),                           
//             UNIT=SYSDA,                                         
//             SPACE=(CYL,(20,2),RLSE),                           
//             DCB=(RECFM=FB,LRECL=80,BLKSIZE=0)                 
//*                                                               
//SYSOUT    DD SYSOUT=*                                           


In the above JCL, How to check from the JCL output that from which loadlib the Program COBOL12 was picked up?

I know the program will be picked up from the 1st loadlib which contains the program. Just want to know if we can see this same information in JCL messages also?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Sep 28, 2011 5:46 pm
Reply with quote

Quote:
Just want to know if we can see this same information in JCL messages also?


NO
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Wed Sep 28, 2011 5:49 pm
Reply with quote

DSLIST for above dataset and use M membername

You will find where your member is.

Quote:
Just want to know if we can see this same information in JCL messages also?

You need to revise concept of dataset concatination.
Back to top
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Wed Sep 28, 2011 6:02 pm
Reply with quote

enrico-sorichetti wrote:
Quote:
Just want to know if we can see this same information in JCL messages also?


NO


Thanks enrico. But like in 3.14 search option, if we concatenate the datasets then the output shows from which pds the string has been found.

Just wanted to know if there is some thing similar in JCL messages also.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Sep 28, 2011 6:03 pm
Reply with quote

if you run xpeditor in batch
you will see it also......
Back to top
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Wed Sep 28, 2011 6:07 pm
Reply with quote

Hi Dick,

I checked the JCLMESSAGES but not able to figure out which loadlib was used by the program.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Sep 28, 2011 6:15 pm
Reply with quote

jcl message[s] will not tell because at the time the load takes place JCL is out of the show
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Sep 28, 2011 6:16 pm
Reply with quote

xpeditor has its own message output listing(s)
Back to top
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Wed Sep 28, 2011 6:19 pm
Reply with quote

enrico-sorichetti wrote:
jcl message[s] will not tell because at the time the load takes place JCL is out of the show


JCL messages mean JESYSMSG JES2
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Wed Sep 28, 2011 6:27 pm
Reply with quote

To reiterate enrico's ORIGINAL reply to your post, there is no way to determine from the JCL messages which load llibrary was used to retrieve a particular program -- if any of them were.
Back to top
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Wed Sep 28, 2011 6:31 pm
Reply with quote

Ok... Thanks Robert.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Sep 28, 2011 9:02 pm
Reply with quote

Hello,

I should know better, but why does it matter which library the module was loaded from? It will always be the library named earlier in the concatenation list. If the module was in all 3 in your example, it will be loaded from the first dataset. . .

Keep in mind the the module also may have been loaded from a library not in the JOBLIB concatenation. . .
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Sep 28, 2011 9:16 pm
Reply with quote

Quote:
Keep in mind the the module also may have been loaded from a library not in the JOBLIB concatenation. . .


that's really when the fun starts...
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed Sep 28, 2011 9:17 pm
Reply with quote

I don't know if it is a help for what you want, but with Cobol I'd always do this, "at the top" of the program (in a sub-program, ensure it only executes once :-) ).

Code:
01 W-WHEN-COMPILED PIC X(8)BX(8).

MOVE WHEN-COMPILED TO W-WHEN-COMPILED
DISPLAY "BBHEXD This program compiled on " W-WHEN-COMPILED


Then, when someone comes along with a somesort-of-test-query from the somesort-of-test-run four days ago, I could always check which program was used for that run (by matching up the date of the compile reported to the compile listing - or browse the load-libraries, starting from the top, to find the compile date in the load module).

Saved me looking at the wrong thing many-a-time - "of course it didn't work, it's using the prod code!"
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 Easy way to delete selected members f... IBM Tools 12
No new posts Could we identify the called modules ... COBOL Programming 5
This topic is locked: you cannot edit posts or make replies. How to supply called sub-program from... JCL & VSAM 25
No new posts how to concatenate two cobol loadlib ... CLIST & REXX 2
No new posts Loadlib error, JCL gives S106 abend COBOL Programming 4
Search our Forums:

Back to Top