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 are the different rules to perform a Search?
What are various search techniques in cobol? Explain.
How many bytes S(8) comp field occupy and its maximum value?
A table has two indexes defined. Which one will be used by the SEARCH?
Write down the divisions of cobol program?
What is the local-storage section?
Explain how you can characterize tables in cobol?
What the difference is between continue and next sentence?
) what is the difference between AID and HANDLE AID?
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?
Write a program that uses move corresponding.
What is a scope terminator give example?
What are the rules of the move verb?
) how do u code after getting data?
What is the difference between perform … with test after and perform … with test before?