COPY Statement

Which one of the following COPY statement is correct?
1) COPY COPYFILE REPLACE ==PRE-== ==WK-==
2) COPY COPYFILE REPLACING =PRE-= =WK-=
3) COPY COPYFILE SUPPRESS
4) COPY REPLACING ==PRE-== ==WK-== IN COPYFILE
5) COPY SUPPRESS COPYFILE

Questions by RanjithJ

Showing Answers 1 - 21 of 21 Answers

Copy statement is used to copy certain statements which is in other member.

If we feel certain statements that will encounter frequently then instead of declaring for multiple time we write them in a member and can copy where ever we need it.
ex:

copy rec1 

copy can be used any where in the program except Identification  division.

  Was this answer useful?  Yes

Rishu

  • Jul 27th, 2014
 

1st one the answer

  Was this answer useful?  Yes

Abhusha

  • Nov 20th, 2014
 

COPY COPYFILE REPLACING =PRE-= =WK-= is the correct answer

correct syntax Syntax:
COPY copybook-name [(OF/IN) library name]
[REPLACING string-to-be-replaced BY replacing-string]

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions