Page 1 of 1

Batch-online cobol programs

PostPosted: Fri Oct 31, 2008 3:27 pm
by coboler
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.

Re: Batch-online cobol programs

PostPosted: Fri Oct 31, 2008 4:32 pm
by santlou
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.