NL - Numeric Length for Output

#### Search Results

Search

# NL - Numeric Length for Output

This session parameter determines the default input/output length for a numeric field used in a `DISPLAY`, `INPUT`, `PRINT` or `WRITE` statement.

Possible settings | `nn.m` | The length is specified as `nn.m`, where `nn` represents the number of positions before the decimal separator, and `m` represents the number of positions after the decimal separator. The `m` notation is optional. The value of `m` must not exceed `7`. The total of `nn+m` must not exceed `29`. Notes: If `NL` is set less than the field length, values are truncated. No error is produced when relevant digits are truncated. If `NL` is set greater than the field length, values are expanded with blanks. No error is produced when an input field is truncated.
Default setting | none |
Specification within session | yes |
Applicable statements | `DISPLAY` `FORMAT` `INPUT` `PRINT` `WRITE` |
Applicable command | none |

Notes:

1. The `NL` parameter must not be specified for groups.
2. Any edit mask specified for a field will override the `NL` parameter for this field.
3. See also Parameters to Influence the Output of Fields in the Programming Guide.

#### Example:

    DISPLAY #AA(NL=20) #AB(NL=3.2)