GOODTRAILING
Returns TRUE or FALSE to indicate whether the value passed is a valid trailing sign field.
idmscu19
Returns TRUE or FALSE to indicate whether the value passed is a valid trailing sign field.
Syntax
►►──┬─ GOODTRAILING ─┬─ (value) ────────────────────────────────────────────►◄ └─ GOODTRL ──────┘
Parameters
- valueSpecifies the numeric value whose type is tested.Valuecan be:
- The name of a user-defined variable data field
- A user-supplied numeric literal
Below are values of type trailing sign:100076+ 2-
Example
In this example, the good trailing function is used to test MYNUMBER before attempting to convert it from trailing sign representation to zoned numeric.
IF (GOODTRL(MYNUMBER)) THEN TRAILING-TO-ZONED(MYNUMBER). ELSE CALL NUMERROR.