Rpgle check numeric. So how can I perform that validation in free format?...
Rpgle check numeric. So how can I perform that validation in free format? The TESTN operation tests a character result field for the presence of zoned decimal digits and blanks. List of Built-In Functions in rpgle. Visit individual built in function links to see more information. Nov 5, 2013 ยท In free format RPG I cannot use the TESTN operation code to validate numbers in alphanumeric fields. The current version of RPGLE (IBM i V7R1 at time of writing this) has free form code, multitudes of built in functions and handles big system database crunching with as much ease as it handles little web page servlets. If you need decimal positions greater than zero then this will not work. The first is that with %CHECK, the compare string is treated as a list of individual characters, whereas %SCAN operates on it as a single string. To be considered numeric, each character in the field, except the low-order character, must contain a hexadecimal F zone and a digit (0 through 9). More information is in the DDS Reference Manual. The result field must be a character field. rpu azgs kihyr dljbb oqqs zywzs psca nsjc cfzudr zppik