In A cobol program , we can use COPY Statement in FILE-
SECTION / WORKING-STORAGE SECTION / ENVIRONMENT DIVIION
basically what is the difference

Answers were Sorted based on User's Feedback



In A cobol program , we can use COPY Statement in FILE- SECTION / WORKING-STORAGE SECTION / ENVIRON..

Answer / 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

In A cobol program , we can use COPY Statement in FILE- SECTION / WORKING-STORAGE SECTION / ENVIRON..

Answer / suresh ramaiyan

There is no difference.

COPY statement just copy all the lines from the copybook
into the source code.

When we feel some piece of codes are used repeatly then we
can code it into the copylib.

So, it is in our hand where to use COPY.

Is This Answer Correct ?    3 Yes 0 No

In A cobol program , we can use COPY Statement in FILE- SECTION / WORKING-STORAGE SECTION / ENVIRON..

Answer / kanika

yes we can copy it any where basically it will copy the
line of code mentioned in another source program.

Is This Answer Correct ?    4 Yes 4 No

Post New Answer

More COBOL Interview Questions

What is the difference between copy and include in cobol?

1 Answers  


What are ISOLATION LEVELS? Where do we need to specify them in compiling JCL (Exactly which statement and what is syntax for it)?

2 Answers   T systems,


) How do you access the migrate the data from production region to development region

1 Answers   IBM,


What is the difference between PIC 9.99 and 9v99 in COBOL?

0 Answers   SwanSoft Technologies,


how do you define single dimensional array and multidimensional array in your cobol?

0 Answers  


What type of SDLC u followed? Why?

0 Answers   IBM,


How include time & date in the report generation in cobol programing?

2 Answers  


What is length is cobol?

0 Answers  


i need a small 3d program using inline and outline.

0 Answers  


How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length

3 Answers   TCS,


How do you differentiate between cobol and cobol-ii?

0 Answers  


IF I mention stop run in CICS what happens?

0 Answers   IBM,


Categories