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
 

 

SEARCH FOR THE SOURCE CODE LIBRARY

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: SEARCH FOR THE SOURCE CODE LIBRARY
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    Post subject: Reply to: SEARCH FOR THE SOURCE CODE LIBRARY
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    Post subject: Reply to: SEARCH FOR THE SOURCE CODE LIBRARY
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: 7936
Location: Bellevue, IA

PostPosted: Thu Feb 17, 2011 5:25 pm    Post subject:
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    Post subject: Reply to: SEARCH FOR THE SOURCE CODE LIBRARY
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

Site Director


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

PostPosted: Thu Feb 17, 2011 11:05 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 0 Thu Jan 12, 2017 12:02 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts PL/I code tuning/Performance improvement Virendra Shambharkar PL/I & Assembler 4 Mon Dec 05, 2016 11:57 am
No new posts What is the code in CLIST to enable t... jackzhang75 CLIST & REXX 1 Fri Dec 02, 2016 3:02 am
No new posts IDEAL - Code Retrieval yugendran CA Products 0 Fri Nov 25, 2016 3:27 pm


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