0 pts.
 RPGLE and Empty File-2
How do I remove a question once I have an answer? For those who might want to know this is the code that worked for my purpose: read(e) filename; if %EOF; do this ?..; else; do this ?..; endif;

Software/Hardware used:
ASKED: November 5, 2004  10:17 AM
UPDATED: November 8, 2004  2:34 AM

Answer Wiki:
One problem with your solution: you read with error extender, so your else clause gets active when an error occurs. Better include a branch for error handling as well.
Last Wiki Answer Submitted:  November 8, 2004  2:34 am  by  Joepbeckeringh   0 pts.
All Answer Wiki Contributors:  Joepbeckeringh   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


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