How to read records which is in sequential file in reverse
order ? Exp. 1 2 3 4 5 . i want 5 4 3 2 1?please clear my
doubt any one
Answer Posted / mustafa i
Abhishekh your logic is correct
just to add to it
we can even do it by reading the file only once.
1)Read File & Move into an array until EOF also increment a
counter after every read.
3)By decrementing the Counter and using it as subscript
we can now read the array and hence the file in
reverse order.
| Is This Answer Correct ? | 10 Yes | 4 No |
Post New Answer View All Answers
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
How you can characterize tables in cobol?
how do you reference the ksds vsam file formats from cobol programs
Why occurs cannot be used in 01 level in COBOL?
Name the sections present in data division.
What is rmode(24)
Are you comfortable in cobol or jcl?
IF I mention stop run in CICS what happens?
How are the next sentence and continue different from each other?
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 is the difference between Global and External Variables?
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
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
How do define dynamic array in cobol.