Batch-online cobol programs



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Batch-online cobol programs

Postby coboler » Fri Oct 31, 2008 3:27 pm

Hi all,

In our application we use two different cobol programs for a batch and online processing although the code is identical in both (except for the parmmvs in the header). From the maintenance point of view (apart from other reasons, I suppose) we would like to use the same source program to be executed online and batch independently.

Is there any possibility to do it? Could someone give me some references?

Thanks very much in advance.
coboler
 
Posts: 3
Joined: Fri Oct 31, 2008 2:11 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Batch-online cobol programs

 

Re: Batch-online cobol programs

Postby santlou » Fri Oct 31, 2008 4:32 pm

If the code is the same for both online and batch, my suggestion would be to take the common code and put it into a common copybook. As long as the batch code is not invoking any mvs macros that are inconsistent with CICS, you can put all the code in one common copybook, and simply reference this code in your procedure division via COPY.
santlou
 
Posts: 15
Joined: Sat Aug 23, 2008 8:06 pm
Has thanked: 0 time
Been thanked: 0 time


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post