I have a character field (did you read that, character) entered by a user that should always be numbers 0-9 (numbers in a character field - whomever set this up should be drawn and quartered) but because it's a character field, sometimes they get sloppy or just decide to be a jerk that day, and they enter a letter somewhere in the field. I need to find this and throw them an error message to ruin THEIR day instead of mine.
I tried doing a lookup using a named constant of ('0123456789') but the compiler didn't like that so i went with (0123456789) and that too, the compiler didn't like.
Found something out there in space in FREE but I'll get the "talk" if I go that route so I'm stuck in ancient times; RPGLE.
(trying to get into the current century but progress moves slowly sometimes.)
Going to try the CHECK op code but in the meantime, any other ideas would be appreciated.
Mike.
I tried doing a lookup using a named constant of ('0123456789') but the compiler didn't like that so i went with (0123456789) and that too, the compiler didn't like.
Found something out there in space in FREE but I'll get the "talk" if I go that route so I'm stuck in ancient times; RPGLE.
(trying to get into the current century but progress moves slowly sometimes.)
Going to try the CHECK op code but in the meantime, any other ideas would be appreciated.
Mike.
Comment