View previous topic :: View next topic
|
Author |
Message |
gylbharat
Active Member
Joined: 31 Jul 2009 Posts: 565 Location: Bangalore
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
Quote: |
Just want to know if we can see this same information in JCL messages also? |
NO |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
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 |
|
|
gylbharat
Active Member
Joined: 31 Jul 2009 Posts: 565 Location: Bangalore
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
if you run xpeditor in batch
you will see it also...... |
|
Back to top |
|
|
gylbharat
Active Member
Joined: 31 Jul 2009 Posts: 565 Location: Bangalore
|
|
|
|
Hi Dick,
I checked the JCLMESSAGES but not able to figure out which loadlib was used by the program. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
jcl message[s] will not tell because at the time the load takes place JCL is out of the show |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
xpeditor has its own message output listing(s) |
|
Back to top |
|
|
gylbharat
Active Member
Joined: 31 Jul 2009 Posts: 565 Location: Bangalore
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
gylbharat
Active Member
Joined: 31 Jul 2009 Posts: 565 Location: Bangalore
|
|
|
|
Ok... Thanks Robert. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|