View previous topic :: View next topic
|
Author |
Message |
sree_sree_sree
New User
Joined: 30 Aug 2006 Posts: 13
|
|
|
|
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..... |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
You can't. |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
How did you get the location of your OBJ module......?? |
|
Back to top |
|
|
sree_sree_sree
New User
Joined: 30 Aug 2006 Posts: 13
|
|
|
|
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 |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
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 |
|
|
sree_sree_sree
New User
Joined: 30 Aug 2006 Posts: 13
|
|
|
|
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 ?
|
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Cant we find the location of the source code PDS in the same JCL??? |
|
Back to top |
|
|
sree_sree_sree
New User
Joined: 30 Aug 2006 Posts: 13
|
|
|
|
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 |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
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 |
|
|
sree_sree_sree
New User
Joined: 30 Aug 2006 Posts: 13
|
|
|
|
Hi,
Still I did not get the exact clarity on this query..
Could you please anybody on this..
Thanks in Advance..... |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Start searching all PDSs for the name of the source module. |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
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 |
|
|
SSR Warnings : 1 New User
Joined: 26 Feb 2006 Posts: 38
|
|
|
|
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 |
|
|
sree_sree_sree
New User
Joined: 30 Aug 2006 Posts: 13
|
|
|
|
We dont have any configuration tool... |
|
Back to top |
|
|
|