View previous topic :: View next topic
|
Author |
Message |
rinkubhat
New User
Joined: 13 Sep 2005 Posts: 35 Location: India
|
|
|
|
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 |
|
|
krishna_sureka
New User
Joined: 05 Sep 2006 Posts: 7 Location: Pune
|
|
|
|
I dont think there is such tool. How about using the copybook for the same ? |
|
Back to top |
|
|
prav_06 Warnings : 1 Active User
Joined: 13 Dec 2005 Posts: 154 Location: The Netherlands
|
|
|
|
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 |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
What's wrong with Edit-Macro?
O. |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
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 |
|
|
|