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
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
What is amode(24)?
Which Search verb is equivalent to PERFORM…VARYING?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
How can you get the ksds file records into your cobol program?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
How do you differentiate between cobol and cobol-ii?
Can we redefine the field of x(200) to less than 200?
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)?
What is Pic 9v99 Indicates in COBOL?
Why occurs cannot be used in 01 level in COBOL?
Give some examples of command terminators?
Explain how to differentiate call by context by comparing it to other calls?
Explain about different table spaces.
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?