what do you mean by copybook? and what is the difference
between the copybook which we are using in working storage
and procedure division.
Answers were Sorted based on User's Feedback
Answer / michealraj. g
There are two types of copybooks: 1. Working storage
copybook 2. Procedure division copybook
1. Working Storage copybook: It contains the input or
output fields names with the field definitions like type or
length of the fields. Instead of defining so many variables
in the WS section, we can have it in a separate file like
thing. It is also useful in mapping the I/P or O/P records
with the specific fields.
2. Procedure Division copybook: It contains set of COBOL
statements in order to execute it at a particular time. It
acts as a sub-program.
| Is This Answer Correct ? | 21 Yes | 1 No |
Answer / jeena.mj
A common piece of {source code} designed to be copied into
many source programs, used mainly in mainframe programming.
working storage copybooks contains only records which we
are using in more then one program.
procedure division copybooks contains cobol logic
statements.
mostly we use working storage copybooks.
| Is This Answer Correct ? | 13 Yes | 0 No |
Answer / 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 |
I have one column say 'X' defined as VARCHAR Can anyone tell me What are the different ways to update this column thru COBOL-DB2 program?
A paragraph PARA-X is to be executed when none of the data names A, B and C have value of 1. Which of the following will achieve this ? (a) IF A NOT = 1 OR B NOT = 1 OR C NOT = 1 PERFORM PARA-X (B) IF NOT A= 1 AND B= 1 AND C = 1 PERFORM PARA-X (C) IF A NOT =1 IF NOT B = 1 OR C= 1 PERFORM PARA-X (C) IF A NOT = 1 AND B NOT = 1 AND C NOT = 1 PERFORM PARA-X
I had 100 records and i want to execute last three records by using cobol programming?what will be coding?
A table has two indexes defined. Which one will be used by the SEARCH?
wht is the difference between goto and perform stmts
diffrence between renames and redifnes with examples
what is the minimum number of lines a Cobol program should have to successfully compile and run
11 Answers ABC, Societe Generale,
when iam reading a flat file which has 100 records through cobol program when iam reading 50th records it gets abends .. so when i run the program again it should read from 50th record .where it got abened ? how it is possible
how can you identify wheather the program is using search or search all in the cobol program?
HOW WE WILL SORT THE ARRAY WHICH IS GOING TO USE FOR SEARCH ALL?
Name the sections present in data division.
Have you code any new programs in COBOL ? What is the functionality of the programs?