9.16 CHECKNUMERIC
Note: Built-In Function Rules Usage Options
Checks a string only contains allowable values and converts the digital and decimal portions into numeric variables.
Arguments
|
Return Values
|
Example
To get a packed decimal 9,2 result field #P92 from an alphanumeric field #A using 2 intermediate work fields called #P90 and #DEC.
USE BUILTIN(CHECKNUMERIC) WITH_ARGS(#A 7 2) TO_GET(#P90 #DEC)
CHANGE FIELD(#P92) TO('#P90 + #DEC')