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

how do you reference the ksds vsam file formats from cobol programs

671


What is the difference between comp and comp-3 usage?

683


How you can read the file from bottom?

662


How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

652


What are declaratives and what are their uses in cobol?

716






what is amode(24), amode(31), rmode(24) and rmode(any)?

707


Why occurs cannot be used in 01 level in COBOL?

723


What is the difference between PIC 9.99 and 9v99 in COBOL?

739


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

683


If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly

2663


What are the rules of the move verb?

712


Describe the cobol database components?

684


what is the difference between COBOL2 AND COBOL390?

2462


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

721


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1788