35 pts.
 Read all records.
I have one pf file and i want to read all records in that pf file through the cobol, how i can read all records? plz explaine me with example.?

Software/Hardware used:
cobol
ASKED: December 23, 2012  5:58 PM

Answer Wiki:
1. Open the required file.
2. Set End of file marker to False.
3. Process record by record in a loop until End of file marker is true
     Fetch first record
     If successful, enter into loop
Fetch data into required fields.
Process the data
Check if next record exists.
True: continue the loop
        false:  exit the loop
4. Close the file.
Last Wiki Answer Submitted:  December 28, 2012  10:05 pm  by  DeveloperMark   180 pts.
All Answer Wiki Contributors:  DeveloperMark   180 pts. , programerrpgle   35 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Thanks for coming to ITKE. This seems like a homework question. What have you tried so far, and what problem are you having that we can help you with?

 32,945 pts.

 

For examples, look in the Information Center first. The COBOL Programmers Guide has Examples of Processing DISK and DATABASE Files. This site would be used if you run into problems trying to make a program work. — Tom

 108,360 pts.