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 can i see junk values in dclgen or in hostvariable of comp ?
Which division and paragraphs are mandatory for a COBOL program?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
What rules are to be followed while using the corresponding options?
Can you please let me know the centre name of INS certification in Kolkata.
Difference between cobol and cobol-ii?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
What is the use of intialize verb?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
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
For rewrite, why is it mandatory that file needs to be opened?