How to read records from flat file in reverse order through
COBOL program?

Answer Posted / satty

we can read file in reverse order by using a dynamic array.
first transfer the ps into array and read it by -1 from
counter = no of records in the file

Is This Answer Correct ?    7 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is static and dynamic call in cobol?

590


Explain what you understand by passing by value.

692


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

708


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.

5673


Why occurs cannot be used in 01 level in COBOL?

711






can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

1950


how do you reference the variable unblock file formats from cobol programs

743


HOw can I get the negative sign while deduct high value from low value

1784


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

1586


how to access the file from prodution from changeman tool and to submit a file to production

6680


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

679


) How do u handle errors in BMS macro

1505


How many bytes S(8) comp field occupy and its maximum value?

1626


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

816


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1520