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

Add a same piece of code in lot of programs


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

New User


Joined: 13 Sep 2005
Posts: 35
Location: India

PostPosted: Wed Feb 21, 2007 3:15 pm
Reply with quote

In case we have to add a same piece of code in lot of cobol programs.Is there any specific tool for doing so?
Back to top
View user's profile Send private message
krishna_sureka

New User


Joined: 05 Sep 2006
Posts: 7
Location: Pune

PostPosted: Wed Feb 21, 2007 3:25 pm
Reply with quote

I dont think there is such tool. How about using the copybook for the same ?
Back to top
View user's profile Send private message
prav_06
Warnings : 1

Active User


Joined: 13 Dec 2005
Posts: 154
Location: The Netherlands

PostPosted: Wed Feb 21, 2007 3:35 pm
Reply with quote

Rinku,
Have u heard about using the concept of sub-program by giving a CALL statement , code u r logic as a sub pgm and call the pgm when ever it is required.


Thamilzan.
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Wed Feb 21, 2007 3:37 pm
Reply with quote

Hi !

Quickest way is to use the method of krishna_sureka.

Write your little code. Generate that CopyBook. Implement the INCLUDE at the desired position in the other programms.


Other way is to write your code in little CobolSubModule that you CALL at
the desired positions.


Regards, UmeySan
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Feb 21, 2007 3:55 pm
Reply with quote

What's wrong with Edit-Macro?

O.
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Wed Feb 21, 2007 3:59 pm
Reply with quote

Hi Ofer71 !

Please could you explain the handling in details.
Seams to be another intresting way.

And please assume, that the programms are under control of Panvalet or Endevor.

Thanks & regards, UmeySan
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 run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts Fetch data from programs execute (dat... DB2 3
No new posts Passing Parameters to Programs Invoke... PL/I & Assembler 5
Search our Forums:

Back to Top