can we use COPY statement in w-s section? how?

Answer Posted / suresh ramaiyan

I believe, level numbers won't take place while including the copy books in cobol programs.

Here is an example:

01 INPUT-RECORD.
COPY INRECOPY.

where INRECOPY is member name of the copy book library, which is contains group of cobol declarations.

Please correct me, if I'm wrong.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between perform … with test after and perform … with test before?

875


How many bytes S(8) comp field occupy and its maximum value?

1626


What is redefines clause in COBOL?

844


Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks

2327


How you can read the file from bottom?

654






Have you used comp and comp-3 in your project? And how?

2003


What is the difference between Call and a Link?

694


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

851


What guidelines should be followed to write a structured cobol prgm?

665


Write a program that uses move corresponding.

668


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

1923


Name some of the examples of COBOl 11?

2676


What is perform what is varying?

701


What is length is cobol?

641


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2718