In A cobol program , we can use COPY Statement in FILE-
SECTION / WORKING-STORAGE SECTION / ENVIRONMENT DIVIION
basically what is the difference
Answer Posted / vikas pujar
At File and WS section we declare variables so copy is used
oftenly in projects , in ENV Division just declare files
ddname and logical file name in Input-output section, so
its not used here.
Copy Copybook1, if this is copybook name this can be used
only once tn program either in file section or ws section,
or else will get error that duplicate varaiable names used.
Copy used at File-Section or WS section behaves same way,
so dont think there is any diff in the way Copy behaves at
diff sections.
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
How many sections are there in data division in COBOL?
how to access the file from prodution from changeman tool and to submit a file to production
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
how to move the records from file to array table. give with code example
What is the difference between comp and comp-3 usage?
What are the pertinent COBOL commands?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
Can we change the password using ALTER? anyone tried and changed?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
What are the different open modes available in cobol?
what is amode(24), amode(31), rmode(24) and rmode(any)?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
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.
i need a small 3d program using inline and outline.
Explain the configuration section of a cobol program with examples of syntax.