what do you mean by copybook? and what is the difference
between the copybook which we are using in working storage
and procedure division.

Answer Posted / shan

Copy books are nothing but COBOL code which can be used in
multiple programs are written in a separate member.

By using COPY <COPY BOOK NAME> statement(COPY is a compiler
directive command), The piece of code in the copy book will
get expanded during compilation.

Mostly copy books are used to define file structures, any
variables structures,which can be defined in multiple
programs, also for some common paragraphs(Ex: Abend
paragraphs). This does not mean this is the only usage.

Even file section, for select clause also we can write a
copy books.

Any part of your COBOL program can be written into to a
separate copy book and using copy command it can be
expanded. There is no classification as working storage copy
book or procedure division copy book, If any one stands by
this classification, please let me know any books or
materials you have referred, i will also get updated.

Is This Answer Correct ?    11 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the default value(s) for an initialize and what keyword allows for an override of the default?

689


How you can characterize tables in cobol?

709


Which is not true about evaluate statement

1564


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

1642


how do you reference the variable block file formats from cobol programs

676






) How do u handle errors in BMS macro

1500


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

620


What is the local-storage section?

675


Write a cobol program making use of the redefine clause.

723


how do you reference the printer file formats from cobol programs

649


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

704


Differentiate between structured cobol programming and object-oriented cobol programming.

661


how do you reference the variable unblock file formats from cobol programs

737


What is the difference between PIC 9.99 and PIC9v99?

771


Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc

812