z/OS DFSORT Application Programming Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Decimal number format

z/OS DFSORT Application Programming Guide
SC23-6878-00

The format for coding a decimal constant is:

[±]n

When an FI field is compared with a decimal constant, n or +n cannot be larger than +9223372036854775807 and -n cannot be smaller than -9223372036854775808.

When a BI field is compared with a decimal constant, n or +n cannot be larger than +18446744073709551615 nor smaller than +0. A BI field cannot be compared to a negative number (-n). A BI field cannot be compared to -0 even if NOSZERO is in effect.

Examples of valid and invalid decimal constants are:

Table 1. Valid and Invalid Decimal Constants
Valid Invalid Explanation
15 ++15 Too many sign characters
+15 15+ Sign in wrong place
-15 1.5 Contains invalid character
18000000 1,500 Contains invalid character

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014