55 pts.
 To Check the junk Values in RPGLE character field
How to check the junk values in character filed except the If loop?

All values that can be entered from keybord are accepetable in this field. Need to check any other characters (jucnk values) stored in this field.  



Software/Hardware used:
AS400
ASKED: August 12, 2009  12:51 PM
UPDATED: August 12, 2009  1:07 PM

Answer Wiki:
Use the %Check OP code. Create a Constant that has all the valid characters, then use that for the edit. Here is sample code $Values = Constant with all values vCheck = variable 3S 0 Clear vCheck; vCheck = %Check($Values : yourfield); If vCheck > 0; ERROR
Last Wiki Answer Submitted:  August 12, 2009  1:07 pm  by  CharlieBrowne   32,915 pts.
All Answer Wiki Contributors:  CharlieBrowne   32,915 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


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