View previous topic :: View next topic
|
Author |
Message |
barajendran1
New User
Joined: 16 Jun 2010 Posts: 9 Location: Chennai
|
|
|
|
I have prepared an adhoc job. In that I have specified the Member name of the Source program but not the Source Library. I have compiled the program long back. In the adhoc JCL I have specified the DBRM Library and Load Library. As the DBRM and Load Libraries are specified in the adhoc JCL it ran fine by picking them. [color=blue]Can anyone help me how I can find the Source Library of the member by having these details ?[/color]. |
|
Back to top |
|
|
yugendran
New User
Joined: 14 Dec 2007 Posts: 51 Location: indore
|
|
|
|
Completely ambiguous question.. Please be clear on your requirement.. |
|
Back to top |
|
|
barajendran1
New User
Joined: 16 Jun 2010 Posts: 9 Location: Chennai
|
|
|
|
Hi Yugendran,
Please find the piece of code below
USRBINDA EXEC DB2BDPKG,DB2BLK=SDB26A,MEMBER=BALAJI,OPT=TBIND
BIND.DBRMLIB DD DSN=BALAJI.DEVELOP.DBRMLIB.DATA,DISP=OLD
and in the STEPLIB I have specified the Load library as below
DD DISP=SHR,DSN=BALAJI.DEVELOP.BATCH.LOADLIB
In this case BALAJI is the program
In the JCL I didn't mention the Program library.
Now I need to know through which Source Library ( PDS ) the above member "BALAJI " has been compiled.
Please note that this was compiled a long back. I got the compilation details through the member "BALAJI" in the dataset BALAJI.DEVELOP.BATCH.LOADLIB |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
Now I need to know through which Source Library ( PDS ) the above member "BALAJI " has been compiled. |
Why are you asking us? We do not work at your site. We do not know your site standards. We do not know what source code management package (if any) is used at your site. We do not know the compile process for programs at your site.
Once a program is compiled into a load module, there is no way to determine where the source came from. Unless you talk to your site support group, team leader, or coworkers, you may not ever find out where the source code was when the program was compiled. |
|
Back to top |
|
|
yugendran
New User
Joined: 14 Dec 2007 Posts: 51 Location: indore
|
|
|
|
Hi,
From the details posted, I can see that it invokes a proc DB2BDPKG and passing necessery parms to that proc (like member,db2blk)..
I believe if that proc does all precompile/compile/bind then you can find the default source library coded inside proc.. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
If your system uses standard compile jcl and you only use the standard compile jcl, run some test compile of the same kind of program and look at what the compile process uses . . .
If your system is like many, libraries change over time and "things" get moved around. Often never re-compiled. So, you may have a challange.
Why not compile the program under a new name, thoroughly test this and get sign-off from whoever verifies "changes", and you have synched the source with the load module. Personally, i cringe when one of my clients tell me they are running from executables that there have missing source. . . |
|
Back to top |
|
|
|