Please enable JavaScript to view this site.

ESL Documentation

Specify a variable name in the following format:

 

VARIABLE_NAME WIDTH [, PREC]

 

VARIABLE_NAME is a string, integer, or float variable, followed by its WIDTH specifier, and optionally, a PRECISION specifier.

 

WIDTH is a positive or negative integer constant specifying the number of columns in the field (including the decimal point and the PRECISION for floats). On input, the sign of the WIDTH specifier is ignored. On output, the sign of the WIDTH specifier indicates the justification of the value in the output field:

 

Sign

Alignment in Output Field

Blanks Appear

Positive

Right

To left of value

Negative

Left

To right of value

 

PREC (PRECISION) is a positive integer constant specifying the number of digits to the right of the decimal point for a float variable. If no PRECISION is specified for a float variable in the record definition, zero is used. (PRECISION will be ignored if specified for either string or integer variables.)