Previous Topic: GOODDATENext Topic: INITCAP


GOODTRAILING

Purpose

Returns TRUE or FALSE to indicate whether the value passed is a valid trailing sign field.

Syntax

►►──┬─ GOODTRAILING ─┬─ ( value ) ────────────────────────────────────────────►◄
    └─ GOODTRL ──────┘

Parameters

value

Specifies the numeric value whose type is tested.

Value can be:

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.