Answer Posted / mahendra.ch
1st way to copy records to an other ps.
open input in-file
output out-file.
perform until end-of-file = 'y'
read in-file
at at end move 'y' to end-of-file
not at end
move in-rec to out-rec
write out-rec
end-read
end-perform.
close in-file.
close out-file.
2st way to copy records to an other ps.
we can copy the records by using file-aid tool also.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
What are the cobol coding sheets?
Explain how to differentiate call by context by comparing it to other calls?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
What is the difference between perform … with test after and perform … with test before?
Whats the difference between search & search ALL?
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
how do you define single dimensional array and multidimensional array in your cobol?
how to access the file from prodution from changeman tool and to submit a file to production
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
what are decleratives in cobol?
What are various search techniques in cobol? Explain.
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
what is the use of outrecord?