What is the point of the REPLACING option of a copy
statement?

Answers were Sorted based on User's Feedback



What is the point of the REPLACING option of a copy statement?..

Answer / nk

Say you have a copybook for a certain record layout. You
want to use the copybook once for an input record and a
second time for an output record. By using replace, you
can use the same copybook twice in the same program, each
with a unique name.

Is This Answer Correct ?    4 Yes 0 No

What is the point of the REPLACING option of a copy statement?..

Answer / guest

Replacing allows for the same copy to be used more than
once in the same code by changing the replace value.

Is This Answer Correct ?    2 Yes 1 No

What is the point of the REPLACING option of a copy statement?..

Answer / pavan

can any one give exact syntax with an example...please...

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More COBOL Interview Questions

How many variables can be declared in w-s section.?

2 Answers  


How to display string in the reverse order using occurs clause?

4 Answers  


why we are using set in searchall?

4 Answers   IBM,


In my table having 3000 Records. How can I delete the 500th row? (we don't know what is data inside the table)

3 Answers   Keane India Ltd,


In a COBOL program, 2 tables TABLE1 and TABLE2 are defined that are indexed by INDEX1 and INDEX2 respectively. Can we use INDEX1 with TABLE2 and INDEX2 with TABLE1?

1 Answers  






What is an in line perform? When would you use it? Anything else you wish to say about it.

0 Answers  


I know my query will return more than one row but I don't want cursor what should I do?

1 Answers  


suppose there is one PF having two members PF1 PF2.PF has one unique key Emp ID.could you tell me uniqueness in PF will be effective across members as well ? assume emp iD 3333 is in member PF1 would same Emp id be exist also in member PF2 ?

2 Answers   Tesco HSC, Wipro,


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

0 Answers  


01rec1. 05 a pic 999v99 value 123.12 05 b pic 99v9 value 45.9 02 rec2. 05 x pic 999v99 05 y pic 99v99 05 z pic x(3) value 'abc' if rec1 is moved to rec2 then what is the value of rec2?

5 Answers   Amdocs,


What is the usage of comp fields in cobol?

0 Answers  


i want all ERRORS codes in COBOL ,JCL,VSAM ,DB2,CICS

4 Answers   Infosys,


Categories