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
 

 

changes made to program called using static call

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: changes made to program called using static call
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

Site Director


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

PostPosted: Wed Sep 19, 2007 6:56 am    Post subject:
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    Post subject:
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: 356
Location: New York

PostPosted: Wed Sep 19, 2007 10:41 am    Post subject:
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

Site Director


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

PostPosted: Wed Sep 19, 2007 12:19 pm    Post subject:
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    Post subject:
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: 1439
Location: Bangalore,India

PostPosted: Wed Sep 19, 2007 12:39 pm    Post subject:
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    Post subject:
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: 1439
Location: Bangalore,India

PostPosted: Wed Sep 19, 2007 12:49 pm    Post subject:
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: 2150
Location: At my coffee table

PostPosted: Wed Sep 19, 2007 2:20 pm    Post subject:
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

Senior Member


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

PostPosted: Wed Sep 19, 2007 6:14 pm    Post subject:
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: 1439
Location: Bangalore,India

PostPosted: Wed Sep 19, 2007 6:49 pm    Post subject:
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

Senior Member


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

PostPosted: Fri Sep 21, 2007 7:21 pm    Post subject:
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    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 Could we identify the called modules ... elixir1986 COBOL Programming 5 Fri Jul 14, 2017 1:53 am
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Compiling program in endeavor for tra... RALAKKAL Compuware & Other Tools 4 Mon Jun 05, 2017 8:27 pm
No new posts COBOL DB2 program - zIIP eligible vasanthz COBOL Programming 7 Wed May 31, 2017 5:12 am


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