Page 1 of 1

What is a copybook and when should one be used?

PostPosted: Mon Jun 09, 2008 7:22 pm
by breentha_d
hi,

i would like to know what is a copybook and when to use it.


Thank you

Breentha

Re: What is a copybook and when should one be used?

PostPosted: Mon Jun 09, 2008 9:56 pm
by dick scherrer
Hello Breentha,

When you have a new question, please start a new topic rather than replying to some existing topic.

COPYBOOKs are code that is kept in a common library (COPYlib) and is expanded in COBOL code using the COPY command.

COPY is used when the same code (i.e. a record layout) is to be used in multiple programs. Using a copybook allows the code to be maintained in one place, but used in all of the programs that need that same code. This can be any kind of code that is used multiple places, not only records layouts.