z/OS ISPF Dialog Tag Language Guide and Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Numeric variables

z/OS ISPF Dialog Tag Language Guide and Reference
SC19-3620-00

You can use the NUMERIC type to ensure that a valid number is entered in the associated field. You can specify the total number of digits (up to 16) allowed in the number and the number of fractional digits allowed. The conversion utility generates a VER(variable ENUM) statement for input validation.

Here is an example of a variable class (pricevar) where the data entered in the associated field has a maximum number of five digits, two of which are fractional:
<varclass name=pricevar
type='numeric 5 2'>

If you do not specify an entry width with the tag that defines the associated field, the conversion utility calculates an entry width for the field based on the NUMERIC value and allow for a sign, thousands separators, and a decimal point.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014