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 |
What happens in the background of spool when we submit a job for compilation and execution... This is a recent question in ibm...Kindly help me.....
.How to add one input & one Out file in existing cobol program. how approach tell me step by step.
i have a file which contains records like 10,30,90,50,20,40,80,60,70 i want to display these records in reverse order like 70,60,80,40,20,50,90,30,10 please give me the cobol code (do not sort the records)
3 Answers Cap Gemini, Mind Tree,
what is search and searchall?what is the diffrence between them?give an best example?
Hi all, I have a following requirement to write the cobol program. I have to load the 129 variables from input sequential file which are in excel sheet to the cobol inernal table. and after loading into table i have to compare this data with the business file. here compare means controlling the data whether the format(numeric,alpha) is same in the business file and in the table??? i have the same data in input and business file. could anyone please give me any idea of the logic?// i have all the 129 different variables(129rows,1 column)is there .
In COBOL, what is the different between index and subscript?
0 Answers TryTechnicals Pvt Ltd,
what is the size of W-REC in the following 01 W-REC 05 A PIC 9(4)V99 05 B READLINES A 10 C PIC XX 10 D PIC S9(4) 05 E OCCURS 7 PIC ZZ.ZZ 05 F OCCURS 5 10 G PIC ZZ.ZZZ99 10 H OCCURS 3 15 J PIC 9(3) 15 K PIC V99
Name the sections present in data division.
What are the functions like c or c++ in cobol?
How can you declare the file ?
Using string statement.Is coding three destination string from one source string possible in one code?or three codes for every destination string of one source string.?thank you
in how many mode we can open a file ?