I've been trying to use CHECK(RB) on a character field, but it doesn't seem to work. If the declared char field is 5 in length and I only enter 1 value then press Enter, I get an error of Enter key not allowed in field. I'm quite certain that I'm declaring CHECK(RB) where I should declare it but somehow I am missing something.
In my RPGLE program, I use %CHECK and trim to check whether the values enter in the character field are numeric (i made the field character type because that's the requirement). Could the %CHECK and %trim be at fault why CHECK(RB) is not working?
In my RPGLE program, I use %CHECK and trim to check whether the values enter in the character field are numeric (i made the field character type because that's the requirement). Could the %CHECK and %trim be at fault why CHECK(RB) is not working?
Comment