Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Which loadlib will be used.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Which loadlib will be used.
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Wed Sep 28, 2011 5:46 pm    Post subject: Reply to: Which loadlib will be used.
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    Post subject:
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    Post subject: Re: Reply to: Which loadlib will be used.
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    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Wed Sep 28, 2011 6:15 pm    Post subject: Reply to: Which loadlib will be used.
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    Post subject:
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    Post subject: Re: Reply to: Which loadlib will be used.
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: 7914
Location: Bellevue, IA

PostPosted: Wed Sep 28, 2011 6:27 pm    Post subject:
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    Post subject:
Reply with quote

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

Site Director


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

PostPosted: Wed Sep 28, 2011 9:02 pm    Post subject:
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    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7241

PostPosted: Wed Sep 28, 2011 9:17 pm    Post subject: Reply to: Which loadlib will be used.
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. How to supply called sub-program from... dchristensen JCL & VSAM 25 Wed Sep 14, 2016 11:36 pm
No new posts how to concatenate two cobol loadlib ... boyti ko CLIST & REXX 2 Mon Jun 29, 2015 4:41 pm
No new posts Loadlib error, JCL gives S106 abend boyti ko COBOL Programming 4 Tue Jan 20, 2015 2:34 pm
No new posts Extracting cobol source code from loa... vicky10001 COBOL Programming 7 Mon May 26, 2014 3:35 pm
No new posts Last changed date for a Loadlib member. Vishnupriyan Pandiyan CLIST & REXX 4 Mon Jun 11, 2012 9:43 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us