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
how do you reference the ksds vsam file formats from cobol programs
What is the difference between comp and comp-3 usage?
How you can read the file from bottom?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
What are declaratives and what are their uses in cobol?
what is amode(24), amode(31), rmode(24) and rmode(any)?
Why occurs cannot be used in 01 level in COBOL?
What is the difference between PIC 9.99 and 9v99 in COBOL?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
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
What are the rules of the move verb?
Describe the cobol database components?
what is the difference between COBOL2 AND COBOL390?
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
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.