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 |
How many variables can be declared in w-s section.?
How to display string in the reverse order using occurs clause?
why we are using set in searchall?
In my table having 3000 Records. How can I delete the 500th row? (we don't know what is data inside the table)
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?
What is an in line perform? When would you use it? Anything else you wish to say about it.
I know my query will return more than one row but I don't want cursor what should I do?
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 ?
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
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?
What is the usage of comp fields in cobol?
i want all ERRORS codes in COBOL ,JCL,VSAM ,DB2,CICS