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

changes made to program called using static call


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

New User


Joined: 13 May 2005
Posts: 38

PostPosted: Wed Sep 19, 2007 6:27 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Sep 19, 2007 6:56 am
Reply with quote

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
View user's profile Send private message
logeswarank
Warnings : 1

New User


Joined: 15 Oct 2006
Posts: 22
Location: Chennai

PostPosted: Wed Sep 19, 2007 10:37 am
Reply with quote

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
View user's profile Send private message
ksk

Active User


Joined: 08 Jun 2006
Posts: 355
Location: New York

PostPosted: Wed Sep 19, 2007 10:41 am
Reply with quote

Logeswaran K,

Your version is correct for Dynamic call not for Static call.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Sep 19, 2007 12:19 pm
Reply with quote

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
View user's profile Send private message
kgumraj2

New User


Joined: 01 Aug 2007
Posts: 42
Location: Hyderabad

PostPosted: Wed Sep 19, 2007 12:34 pm
Reply with quote

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
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Wed Sep 19, 2007 12:39 pm
Reply with quote

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
View user's profile Send private message
kgumraj2

New User


Joined: 01 Aug 2007
Posts: 42
Location: Hyderabad

PostPosted: Wed Sep 19, 2007 12:46 pm
Reply with quote

Thanks much for the Information.
I didnt know that, this site is pure Brainstroming and all will learn many many things.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Wed Sep 19, 2007 12:49 pm
Reply with quote

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
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Wed Sep 19, 2007 2:20 pm
Reply with quote

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, icon_eek.gif or just plain ignorant? icon_rolleyes.gif
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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Sep 19, 2007 6:14 pm
Reply with quote

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
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Wed Sep 19, 2007 6:49 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Sep 21, 2007 7:21 pm
Reply with quote

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.. icon_smile.gif
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 Using API Gateway from CICS program CICS 0
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
Search our Forums:

Back to Top