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
What is the difference between structured cobol programming and object alternativelyiented cobol?
Explain what you understand by passing by value.
What is the difference between comp and comp-3?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
how do you reference the ksds vsam file formats from cobol programs
For rewrite, why is it mandatory that file needs to be opened?
How many bytes S(8) comp field occupy and its maximum value?
What is the use of intialize verb?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
How to know whether the module is dynamical or statistical?
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
What is comp-1 and comp-2?
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
State the various causes of s0c1, s0c5 and s0c7.