Changes in copybook

This is a Mainframe COBOL forum - you can post your queries on Mainframe COBOL, VS COBOL II, COBOL/370 , Enterprise COBOL

Moderators: dbzTHEdinosauer, Moderator Group

Post Reply
Posts: 23
Joined: Sun Oct 05, 2008 4:35 pm

Changes in copybook

Post by nrajini » Mon Oct 06, 2008 2:27 pm

If we are changing a copybook .Say adding a new field , do we have to compile all the modules which are using this copybook .. If yes pls explain

or do we have to compile only those modules which uses the newly added variable?

User avatar
Site Admin
Posts: 1052
Joined: Fri Jan 27, 2006 7:50 am

Post by Krishna » Mon Oct 06, 2008 2:49 pm

Suggesting method is to compile all the programs which are using this copy book.

There are three cases , i would like to discuss here.

1) Copy book length got changed.
I strongly suggest that, you better compile all programs using that copy book.

2) New field is NOT added at the end. ( added between fields etc.. )
I strongly suggest... compile all programs using that copy book

3) Copy book length not changed, added new field in the free space available ( FILLER) / at the end of the copy book.
It is not required to compile the programs, if it is not using the new field.

Post Reply


Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Mainframe Interview questions

Other References
Mainframe Tools and others