Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Add a same piece of code in lot of programs

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Add a same piece of code in lot of programs
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    Post subject:
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    Post subject:
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: 757
Location: Germany

PostPosted: Wed Feb 21, 2007 3:37 pm    Post subject:
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: 2360
Location: Israel

PostPosted: Wed Feb 21, 2007 3:55 pm    Post subject:
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: 757
Location: Germany

PostPosted: Wed Feb 21, 2007 3:59 pm    Post subject:
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    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 Getting GG return code abdulrafi IMS DB/DC 2 Tue Apr 10, 2018 12:31 pm
No new posts IMS error U4038 while executing my PL... abdulrafi IMS DB/DC 2 Thu Feb 08, 2018 1:05 pm
No new posts Conditional setting of return-code af... sanvan COBOL Programming 9 Wed Jan 31, 2018 11:05 pm
No new posts IBEGENER RETURN CODE 12 anilkumar922 All Other Mainframe Topics 5 Wed Dec 13, 2017 11:41 am
No new posts Finding the plan when code compiled u... Ahemad DB2 2 Fri Dec 01, 2017 6:38 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us