Previous Topic

Next Topic

Book Contents

Book Index

Currency Mask

A currency mask can be used for currency specification in string substitutions for the ON COMPARE statement or the MSUBSTMASK function. The currency mask must be matched to validate and format a value specified in a specific currency on the file or report. The output of a currency mask is a value in the numeric format that is enclosed within the innermost parentheses of the mask. This value is computed in the currency specified to the left of these parentheses.

A currency mask is specified as a substring of the SUBSTTO string in the ON COMPARE statement or MSUBSTMASK function, in the following format:

xxx=(validation mask | format mask[,%yyy=(format mask)])

In this format

Parent Topic

Implementing Euro Currency Support