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
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
What is the Purpose of Pointer in the string?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
Have you used comp and comp-3 in your project? And how?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
) what is the difference between AID and HANDLE AID?
What is difference between static and dynamic call in cobol?
What are the different rules to perform a Search?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
Can we change the password using ALTER? anyone tried and changed?
Give some examples of command terminators?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?