View previous topic :: View next topic
|
Author |
Message |
Ali_gezer
Active User
Joined: 06 Apr 2021 Posts: 123 Location: argentina
|
|
|
|
Hello, how are you?
Im strugling finding the code of certain pgm, I asked to system programmers of my company and they do not know where the source of the pgm is.
is there a way to find the library of the pgm to see its code?
I tried some tso commands that bring me a list of libraries but in my company there are hundreds of libraries.
Any clue?
Code: |
//PASO12 EXEC PGM=UTBXLIST
//SYSPRINT DD SYSOUT=*
//SYSLST DD SYSOUT=*
//SYSUT1 DD DSN=&&BOMOVD64 |
[/code]
(the pgm is not in the clasical joblib, there no specification of any lib neither.
Code: |
//PRBOxxxx JOB (01,BO,PR01,0000000,PPPPPPPP),'',
// USER=,CLASS=6,MSGCLASS=X,COND=(000,LT),
// RESTART=%%RESTART |
|
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2147 Location: USA
|
|
|
|
If nothing except the load module has left from your program, there is no way to automatically detect where it comes from...
To say nothing that the "program":
1) may be written in various languages, and/or
2) may consist of multiple parts (object modules), and/or
3) the load module name may have nothing in common with the object codes names, and source module names... - There is no strict requirement to strictly follow any naming agreements. |
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1341 Location: Bamberg, Germany
|
|
|
|
Get rid of the program as soon as possible. You will not find anyone who is able to maintain it and the source (as you see) will get lost. We have had same situations in the past. |
|
Back to top |
|
|
Ali_gezer
Active User
Joined: 06 Apr 2021 Posts: 123 Location: argentina
|
|
|
|
Joerg.Findeisen wrote: |
Get rid of the program as soon as possible. You will not find anyone who is able to maintain it and the source (as you see) will get lost. We have had same situations in the past. |
actually this is a program that is active and in the productive environment but I to this time I have asked several people here in my company and noone can give me the code.
I thought that when no joblib was specified, the library was the default one but there is not the prgram neither. |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2147 Location: USA
|
|
|
|
Ali_gezer wrote: |
I thought that when no joblib was specified, the library was the default one but there is not the prgram neither. |
1. The load modules library has not a minor relation to the source library(ies) where its modules have been compiled from.
2. In one of companies I was working for, they had 97 DSNAMES in the LINKLIST of "default" libraries used in case JOBLIB/STEPLIB is missing; not only SYS1.LINKLIB |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3076 Location: NYC,USA
|
|
|
|
Why do you need source code ? If its a third party then you will never have it as you are trying to reverse engineering by then.
The AMBLIST could help you to get logs and possibly pseudo code, please try Google it and explore. |
|
Back to top |
|
|
Ali_gezer
Active User
Joined: 06 Apr 2021 Posts: 123 Location: argentina
|
|
|
|
Some person told me that it was a purchased program, so it was natural that the code was hidden or something like that.
thanks. |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3076 Location: NYC,USA
|
|
|
|
So you got the answer As I thought. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2596 Location: Silicon Valley
|
|
|
|
Quote: |
it was a purchased program |
You have to look at your license. You might not even be allowed to try to reverse engineer it.
If you are having problems with it, contact the company that you purchased it from. Frequently, the load module will contain a declared constant with "Copyright Acme Corp" or something similar. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2596 Location: Silicon Valley
|
|
|
|
Quote: |
they do not know where the source of the pgm is |
I think this is a frequent problem. Your site should audit all of your production load modules to make sure you have up-to-date source code, as well as macro libs, JCL, link edit statements, etc. |
|
Back to top |
|
|
Ali_gezer
Active User
Joined: 06 Apr 2021 Posts: 123 Location: argentina
|
|
|
|
THANKS TO ALL.
I have not nothing more to say other than say thank you, this forum is gold. |
|
Back to top |
|
|
|