TESTALFA: Demonstration program for ALFANMBR.
Requires the following information:
Amount PIC 999999.99 Numeric amount to be converted.Text PIC X(83) Converted text string; returned from the subroutine.
Limit PIC 999999.99 Maximum amount permitted.
Return PIC 9 Return code from subroutine (see below for meanings).
Return code values: 0 - successful conversion 1 - zero amount 2 - negative amount 3 - amount greater than limit
COBOL source (for both ALFANMBR and TESTALFA) is available.
CALL "ALFANMBR" USING CHECK-AMT CHECK-AMT-TEXT CHECK-LIMIT ALFANMBR-RETURN-CODE.
If the value of CHECK-AMT was 25.14, CHECK-AMT-TEXT will be:
"TWENTY-FIVE AND 14/100 DOLLARS".