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

Finding the source program using Object Program


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sree_sree_sree

New User


Joined: 30 Aug 2006
Posts: 13

PostPosted: Tue Nov 28, 2006 5:36 pm
Reply with quote

Hi,

This is Sree from Hyderbad..

I know the link Module (PDS ) where object mudule is stored..
Now How can we find the location of the source program by looking at the object mudule...

Could you please let me know that ........

Thanks & Regards,
Sree
High-tech city..... icon_rolleyes.gif
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Tue Nov 28, 2006 5:39 pm
Reply with quote

You can't.
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Tue Nov 28, 2006 5:51 pm
Reply with quote

How did you get the location of your OBJ module......??
Back to top
View user's profile Send private message
sree_sree_sree

New User


Joined: 30 Aug 2006
Posts: 13

PostPosted: Tue Nov 28, 2006 6:19 pm
Reply with quote

Yes, We can get the location of the object module..
If we run the cobol program then we need to give the object module name as well as load library name in the Run JCL... Am i right ?...
so we know the load library name by looking at the Run JCL...
Imagine here we are taking any production Run JCL.. In this we will get that load library name and in that we will find the Object module name...
so by looking at that load library or object module name how we can find the source program loacation...

please let me know if am wrong...

Thanks & Regards,
Sree
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Tue Nov 28, 2006 6:47 pm
Reply with quote

sree_sree_sree wrote:
If we run the cobol program then we need to give the object module name as well as load library name in the Run JCL... Am i right ?...
yes
Quote:
so we know the load library name by looking at the Run JCL...
Imagine here we are taking any production Run JCL.. In this we will get that load library name and in that we will find the Object module name...
keep in mind the loadlib conbcatination can be pretty expansive...
Quote:
so by looking at that load library or object module name how we can find the source program loacation...
other than assuming that the source code is named the same as the loadmod (is program-id visible in the object code?) and searching every 80 byte FB PO for it, there is nothing in the object code to point to the location of the source code.
Back to top
View user's profile Send private message
sree_sree_sree

New User


Joined: 30 Aug 2006
Posts: 13

PostPosted: Tue Nov 28, 2006 7:06 pm
Reply with quote

Hi William.

Thanks for quick responce...
Yes,source code is named the same as the loadmod name.
Final, you want say that we can't find the source program location? Am i right ?

icon_surprised.gif
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Tue Nov 28, 2006 7:10 pm
Reply with quote

Cant we find the location of the source code PDS in the same JCL???
Back to top
View user's profile Send private message
sree_sree_sree

New User


Joined: 30 Aug 2006
Posts: 13

PostPosted: Tue Nov 28, 2006 7:17 pm
Reply with quote

We cant find the location of the source code PDS in the same JCL..

For maintanance log(documentation as project need) purpose we will write the source programe name.. but this is not mandatary...
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Tue Nov 28, 2006 7:18 pm
Reply with quote

sree_sree_sree wrote:
Final, you want say that we can't find the source program location?


Oh no, I do not believe that I said that you "can't" find the location, it's more like (if it does in fact exist) you'll have to search for it. Some shops would have a limited number of generally used repositories for the source, looking there first could narrow down the search, but other shops might not be organized and that would leave a lot of PDSs to search.[/quote]
Back to top
View user's profile Send private message
sree_sree_sree

New User


Joined: 30 Aug 2006
Posts: 13

PostPosted: Wed Nov 29, 2006 3:00 pm
Reply with quote

Hi,

Still I did not get the exact clarity on this query..

Could you please anybody on this..

Thanks in Advance.....
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Wed Nov 29, 2006 5:45 pm
Reply with quote

Start searching all PDSs for the name of the source module.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Thu Nov 30, 2006 5:09 am
Reply with quote

Here's a possibility that might work:

Since you know the load library of the load module check the JCL lib(s) where the compile/link JCL is kept.

Use 3.13 to search for the loadlib dsn. In the same compil/link proc you should find the source lib name that contains the source module you're looking for.

It's not 100% certain that you will but the probability is good.
Back to top
View user's profile Send private message
SSR
Warnings : 1

New User


Joined: 26 Feb 2006
Posts: 38

PostPosted: Thu Nov 30, 2006 11:19 am
Reply with quote

Hi Sree,

What configuration management tool do you use?

If you use NDVR or any other tool for version control then you can give a search in the repository using this object program name.

It will list you all the programs that are accessing this module.

Regards
SSR
Back to top
View user's profile Send private message
sree_sree_sree

New User


Joined: 30 Aug 2006
Posts: 13

PostPosted: Tue Dec 05, 2006 7:24 pm
Reply with quote

We dont have any configuration tool...
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Error to invoke MPP program through B... IMS DB/DC 3
No new posts Finding and researching jobs All Other Mainframe Topics 0
No new posts Using API Gateway from CICS program CICS 0
No new posts VB to FB - Finding LRECL SYNCSORT 4
No new posts DB2 Event passed to the Application P... DB2 1
Search our Forums:

Back to Top