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 / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

1494


what is the difference between COBOL2 AND COBOL390?

2468


if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

866


What is the difference between Global and External Variables?

682


What is an in line perform? When would you use it? Anything else you wish to say about it.

657






please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

1967


I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.

2021


how do you reference the printer file formats from cobol programs

679


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

1672


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

753


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8190


What are the different open modes available in cobol?

726


1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?

5394


Which mode is used to operate the sequential file?

684


What kind of error is trapped by on size error option?

749