Question on Copybook Changes

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

Question on Copybook Changes

Postby Gururao78 » Wed Jan 27, 2010 3:46 am


I have a copybook which is getting changed in the middle portion. Previously it had a filler of X(142) in the middle and some fields were following it. Now as part of the new changes, we are use some of the filler space to introduce some new fields which will use 24 bytes of that 142 byte and the Filler will be reduced to 118 Bytes followed by whatever fields that were after that earlier.

I just wanted to know, since we are just using the filler space available in the middle of the copybook and not trying to expand the copybook by adding new fields, do we need to still recompile all the other programs that are using this copybook?
Posts: 9
Joined: Mon Sep 28, 2009 5:09 am
Has thanked: 0 time
Been thanked: 0 time

Re: Question on Copybook Changes


Re: Question on Copybook Changes

Postby dick scherrer » Wed Jan 27, 2010 4:36 am


Probably not needed. . .

Suggest someone look at the content of files created with this layout - what if some of the filler has been used and not documented in the copybook - i.e. someone else had a requirement and slipped it in)?

Assuming all is well, how is this filler initialized? If any of the unchanged modules move values to these positions it may cause problems for the code that needs to use the newly defined fields
Hope this helps,
User avatar
dick scherrer
Global moderator
Posts: 6308
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 90 times

Return to IBM Cobol


  • Related topics
    Last post