Version 4.2.6 for Mainframes
 —  Parameter Reference  —

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.

The NL parameter must not be specified for groups.

Any edit mask specified for a field will override the NL parameter for this field.

Possible settings nn.m The length is specified as nn.m, where nn represents the number of positions before the decimal point and m represents the number of positions after the decimal point. 

The m notation is optional. The value of m must not exceed 7. The total of n+m must not exceed 29.

Notes:

  1. If NL is set less than the field length, values are truncated. No error is produced when relevant digits are truncated.
  2. 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

Example:

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

See also Parameters to Influence the Output of Fields in the Programming Guide.

Top of page