I want to throw error messages based on following validation on the display screen.
1) If field type is character and it's length is 50 and if someone put numeric value in it's first position then error message should be populated as following:-
"The value of 1 is not valid for this field"
It should accept only character value on it's first position and then from second position onwards. It should be able to accept any value in it including blanks.
Any help with RPGLE program code would be much appreciated.