MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

COBOL copybook

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
nasarslv
Beginner


Joined: 08 Oct 2005
Posts: 1
Topics: 1

PostPosted: Sat Oct 08, 2005 12:42 pm    Post subject: COBOL copybook Reply with quote

Hi,

If i am changing the copybook by adding new fields or changing the length of the field, do i need to compile all the cobol program which is using this copybook.

Please let me know.
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Sat Oct 08, 2005 12:54 pm    Post subject: Reply with quote

Think about it. If you have two programs allocate or map the same piece of storage differently, will they operate correctly together?

There are limited cases where not compiling all programs that share a copybook *may* work: for example, if you add fields at the end only, or the offsets and definitions of the fields they both reference haven't changed, but you WILL eventually run into problems and they will be VERY difficult to diagnose because you will think that both programs allocate/reference/free storage the same way and they don't. This problem is exactly the reason that source code managment systems (SCMs) such as SCLM, ISPW, Endeavor, CCC, PVCS, etc, etc exist.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group