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

Whats the difference between search & search ALL?

5270


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

686


What is the difference between Call and a Link?

702


What type of SDLC u followed? Why?

1522


What is link edit in cobol?

774






What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

780


What is a scope terminator give example?

659


What is the difference between next sentence and continue in cobol programing language?

712


How do you define a variable of comp-1 and comp-2?

707


What is the difference between perform … with test after and perform … with test before?

885


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

710


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

714


What is the difference between external and global variables in COBOL?

815


Name some of the examples of COBOl 11?

2688


Have you used comp and comp-3 in your project? And how?

2010