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
 

 

Finding the source program using Object Program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Finding the source program using Object Program
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: 3158
Location: Tucson AZ

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

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

Moderator


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

PostPosted: Tue Nov 28, 2006 5:51 pm    Post subject:
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    Post subject:
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: 3158
Location: Tucson AZ

PostPosted: Tue Nov 28, 2006 6:47 pm    Post subject:
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    Post subject:
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: 2180
Location: @my desk

PostPosted: Tue Nov 28, 2006 7:10 pm    Post subject:
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    Post subject:
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: 3158
Location: Tucson AZ

PostPosted: Tue Nov 28, 2006 7:18 pm    Post subject:
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    Post subject:
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: 3158
Location: Tucson AZ

PostPosted: Wed Nov 29, 2006 5:45 pm    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
No new posts A sample of exit program for exit XMN... lind sh CICS 2 Mon Oct 03, 2016 5:07 pm


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