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

SEARCH FOR THE SOURCE CODE LIBRARY


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
barajendran1

New User


Joined: 16 Jun 2010
Posts: 9
Location: Chennai

PostPosted: Thu Feb 17, 2011 3:49 pm
Reply with quote

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
View user's profile Send private message
yugendran

New User


Joined: 14 Dec 2007
Posts: 51
Location: indore

PostPosted: Thu Feb 17, 2011 4:45 pm
Reply with quote

Completely ambiguous question.. Please be clear on your requirement..
Back to top
View user's profile Send private message
barajendran1

New User


Joined: 16 Jun 2010
Posts: 9
Location: Chennai

PostPosted: Thu Feb 17, 2011 5:03 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Thu Feb 17, 2011 5:25 pm
Reply with quote

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
View user's profile Send private message
yugendran

New User


Joined: 14 Dec 2007
Posts: 51
Location: indore

PostPosted: Thu Feb 17, 2011 5:28 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Thu Feb 17, 2011 11:05 pm
Reply with quote

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
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Search two or more word with FILEAID Compuware & Other Tools 15
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Calling an Open C library function in... CICS 1
Search our Forums:

Back to Top