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
how do you reference the esds vsam file formats from cobol programs
What is the difference between external and global variables in COBOL?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
what is amode(24), amode(31), rmode(24) and rmode(any)?
Define cobol?
How do get the result of your program directly on your pc?
How are the next sentence and continue different from each other?
Have you used comp and comp-3 in your project? And how?
how do you reference the variable unblock file formats from cobol programs
What is the compute verb? How is it used?
How do you differentiate between cobol and cobol-ii?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
What rules are to be followed while using the corresponding options?
How to remove 2 duplicate records and copy only one using job control language?