What is the point of the REPLACING option of a copy
statement?
Answers were Sorted based on User's Feedback
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 |
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 |
Answer / pavan
can any one give exact syntax with an example...please...
| Is This Answer Correct ? | 1 Yes | 0 No |
I have a COBOL main program which is calling sub program, the number of calling parameters used in main program are 4 whereas in sub program it's 5. Sub program is passing 5 parameters back to main program Will there be any compilation error? Or main program parameters displays junk values?
Difference between array and sub-script ?
copy 100 records without using ibm utilities
i have a file which contains records like 10,30,90,50,20,40,80,60,70 i want to display these records in reverse order like 70,60,80,40,20,50,90,30,10 please give me the cobol code (do not sort the records)
3 Answers Cap Gemini, Mind Tree,
I have a field with data type X(10). I want to perform arithmetic operation on this field? I tried doing it by moving the value into a numeric field. but it didn't work out. I am getting a S0C7 abend. Pls let me know if there is any way of getting this done?
can we use go to statement inline-perform?
Extract only those records from a PS file which are having word 'TEXT' in the records using COBOL? The word TEXT is not present in a particular position in all the records.
.How to add one input & one Out file in existing cobol program. how approach tell me step by step.
give the examples of strings in cobol
what will happen if pass values more than 100 using PARM parameter?
I have the file which is having the extension no as records. sample file will look like below. 2310 3410 3256 4350 3781 5408 I need to replace the record which is starting with 3 to 5 (i.e) 3410 to 5410. How can we do it through cobol and cobol-db2 program? I need the possible logic?
What are the different open modes available in cobol?