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

What are declaratives and what are their uses in cobol?

692


I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.

1098


Name some of the examples of COBOl 11?

2665


Differentiate between structured cobol programming and object-oriented cobol programming.

656


what is s000 u4087 error? please give the all error codes in cobol,jcl.

16995






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

689


How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?

2080


What rules are followed by the search verb.

623


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

635


What are the cobol coding sheets?

652


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

3697


What are different data types in cobol?

668


Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5036


How to use the same COBOL program in Batch and CICS on lines? explain with an example

1898


what are decleratives in cobol?

1814