View previous topic :: View next topic
|
Author |
Message |
umed
New User
Joined: 13 May 2005 Posts: 38
|
|
|
|
Hi,
I have 2 programs.Program A is calling program
B using Static Call .I have to make changes to
program B. Unfortunately I don't have source
module of the program A.
Can anyone suggest me some solution for How
can I tackle this situation? As it is static call I believe
we need to compile-relink both of the programs.
Correct me if I am wrong.
Regards,
Umed |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
It is time to start on the re-write of programA.
Do you still have the object module from the programA compile?
I'd suggest you make a copy of the programA load module that you currently have have so that you can at least get back to where you are.
If you change only the logic in programB, you may be able to re-link programA from either the object module or possibly even the load module. Talk with your system support people for guidance on how to set up a one-time link for this situation.
If the parm data that is used by both programs has changed format, you will have to have a new version of A. |
|
Back to top |
|
|
logeswarank Warnings : 1 New User
Joined: 15 Oct 2006 Posts: 22 Location: Chennai
|
|
|
|
Hi,
I think no need to re write program A,because you made changes in program B only.You compile the program B.The program A is calling program B, then you will get exact output.
If its wrong correct me. |
|
Back to top |
|
|
ksk
Active User
Joined: 08 Jun 2006 Posts: 355 Location: New York
|
|
|
|
Logeswaran K,
Your version is correct for Dynamic call not for Static call. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
I think no need to re write program A |
It is very foolish to knowingly continue to run a production program for which you have no source code.
As i mentioned, it may be possible to link a new version, but even if it is possible, i would recommend informing the project lead or other management about the missing source and getting source code back in place. With a bit of luck, there is an old backup that contains the source code or possibly an archived listing. |
|
Back to top |
|
|
kgumraj2
New User
Joined: 01 Aug 2007 Posts: 42 Location: Hyderabad
|
|
|
|
Hi,
1.If your shop has backup of Object module, please do check ( I dont fell they have).
2. There will be no load module without source code, please check it in version control tool you use and retrive that and run.
Thanks |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Kiran,
Quote: |
There will be no load module without source code, please check it in version control tool you use and retrive that and run. |
What if you deleted/archived the source after compilation, keeping object only? If the pgm is a generic one, most shops doesn't maintain source. This is to avoid accidental changes. |
|
Back to top |
|
|
kgumraj2
New User
Joined: 01 Aug 2007 Posts: 42 Location: Hyderabad
|
|
|
|
Thanks much for the Information.
I didnt know that, this site is pure Brainstroming and all will learn many many things. |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Kiran,
Quote: |
I didnt know that, this site is pure Brainstroming and all will learn many many things. |
I beg to differ...... I feel its mostly practical experince. |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
murmohk1 wrote: |
If the pgm is a generic one, most shops doesn't maintain source. This is to avoid accidental changes. |
Are you out of your mind, or just plain ignorant?
Not maintaining source to prevent accidental changes? What is the color of the sky in your universe?
Your statement deserves to be deleted by a moderator....... |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
murmohk1 wrote: |
If the pgm is a generic one, most shops doesn't maintain source. This is to avoid accidental changes. |
Hi Murali,
What's the definition of 'generic' for you ?
If source is deleted ..what if I need to modify my changes on a later date?
Didn't get you? Please clarify, I believe that most shops do maintain the source codes. |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Cics Guy,
Quote: |
Not maintaining source to prevent accidental changes? |
In my shop, I had seen many elements without source in endevor. This is because the elements have been ARCHIVED (source only) and used in many programs (most archived elements are subprogs).
Iam not sure about other jobs. This is the existing scenario in my shop.
Quote: |
What is the color of the sky in your universe? |
I would like to listen from you now.
Anuj,
Quote: |
If source is deleted ..what if I need to modify my changes on a later date? |
My original post says DELETE/ARCHIVE. In my case, you are NOT supposed to change.
Quote: |
I believe that most shops do maintain the source codes. |
As said they do maintain archive copy (in case). |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
murmohk1 wrote: |
My original post says DELETE/ARCHIVE. In my case, you are NOT supposed to change. |
Perhaps we've taken your comments in very general.. |
|
Back to top |
|
|
|