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

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

803


What are the various section in data division and briefly explain them.

676


What is a report item?

724


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

664


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

1633






What are the different open modes available in cobol?

705


how to access the file from prodution from changeman tool and to submit a file to production

6654


) how do u code after getting data?

1572


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

801


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

690


How do u write test cases?

1625


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2039


Write a program to explain size error.

659


State the various causes of s0c1, s0c5 and s0c7.

652


What is the difference between Call and a Link?

682