AS400 Programming in RPG 400

pts.
Tags:
Application development
i am a novice at programming. Have written a small program which populates a PF. I am not sure how I can display a USER message which would reflect if the user attempts to add a record which is a duplicate on the key field. I did try to browse the programmer's guide but find that i would have to peruse the whole book which is not possible in the limited time Thanks

Answer Wiki

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

First step would be to chain to the file before you do the write to make sure the record doesn’t already exists.
Then you can either set on an indicator that would display a error message in your display or pop-up a window explaining the error.

Do you know how to program error messages into your display file?

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