RPGLE and Empty File-2

0 pts.
Tags:
Development
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;
ASKED: November 5, 2004  10:17 AM
UPDATED: November 8, 2004  2:34 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following