Hi,
A copybook is used in several COBOL programs. If we add some fields to copybook which are used by some modules but not all the programs, is it necessary to recompile all the modules which are using this copybook even though the program does not use newly added field? Please suggest.
Do I need to recompile all the COBOL programs?
-
- New Member
- Posts: 5
- Joined: Sun Jun 15, 2014 12:48 am
-
- Global Moderator
- Posts: 828
- Joined: Wed Sep 11, 2013 3:57 pm
Re: Do I need to recompile all the COBOL programs?
in general it is a good practice to have everything aligned!
usually a change management tool will, on its own, rebuild the modules referring to a changed copybook
usually a change management tool will, on its own, rebuild the modules referring to a changed copybook
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
-
- New Member
- Posts: 5
- Joined: Sun Jun 15, 2014 12:48 am
- Robert Sample
- Global Moderator
- Posts: 1896
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Do I need to recompile all the COBOL programs?
If the added fields change the length of the record, then you need to recompile every program using the copy book. Otherwise, you may not need to recompile every program -- it depends largely upon whether the added fields are all at the end of the record or not.
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute