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
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 |
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 |
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 |
What is a report item?
What is Control Break processing ?
is it possible to pass an SQL query inside a jcl which is inside a cobol program?
Explain fixed length record in cobol? with suitable example
How to find How Many Lines in Sysin DD * Parameter Thru Cobol Coding? If any one knows the Answer Please Reply .....Thanks From Shree
How to resolve the soc4 & soc7 other than following answers. Soc4 can resolved using mispleed dd name and dd name is not matching with file and soc7 check the sysdump and copy the offest address then correct it in the program.
10 Answers ADP, Amdocs, Cap Gemini, Keane India Ltd, Super Value, TCS,
How many times the loop runs here 01 a pic 9(2) value 10. perform para1 a times stop run. para1: move 20 to a.
Can anyone explain me CALL procedure in COBOL.Does it carries similarities like call by reference in C.
what is the minimum number of lines a Cobol program should have to successfully compile and run
how would find total records in files using seqientional
suppose a cobol programme A calling programme B,C and D. If C undergoes some change what if A,B,C,D need to be recompiled or only C nee to be recompliled.
What is the difference between PIC 9.99 and 9v99 in COBOL?
0 Answers SwanSoft Technologies,