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 to remove 2 duplicate records and copy only one using job control language?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
How you can characterize tables in cobol?
Why did you choose to work with ibm mainframe cobol programming?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
How do you differentiate between cobol and cobol-ii?
What are the different rules of SORT operation?
What are the rules of the move verb?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
What are the various section in data division and briefly explain them.
how do you reference the ksds vsam file formats from cobol programs
How do get the result of your program directly on your pc?
What is perform what is varying?
What are the cobol coding sheets?
What do you understand by psb and acb?