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
what is difference between cobol and cobol/400
What is the difference between PIC 9.99 and PIC9v99?
How you can characterize tables in cobol?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
Are you comfortable in cobol or jcl?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
How to use the same COBOL program in Batch and CICS on lines? explain with an example
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
How do you reference the following file formats from cobol programs?
What are the different data types in cobol?
Write down the divisions of cobol program?
How many bytes S(8) comp field occupy and its maximum value?
How can you get the ksds file records into your cobol program?
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 length is cobol?