0 pts.
 AS400 Programming in RPG 400
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

Software/Hardware used:
ASKED: February 24, 2006  9:06 AM
UPDATED: February 24, 2006  9:22 AM

Answer Wiki:
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?
Last Wiki Answer Submitted:  February 24, 2006  9:22 am  by  JBurelle   0 pts.
All Answer Wiki Contributors:  JBurelle   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


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