Enform Plus Reference Manual
Clauses
Enform Plus Reference Manual—422684-001
5-20
Decorations
position for left-justified values. The data values are shifted an appropriate number
of positions.
Processing Order
Enform Plus processes decorations in the following order:
1. The data is tested to determine if it has a null value.
2. The data is tested to determine if it has a positive, negative, or zero value.
3. If the P location decoration is specified, the character string is added to the item
value.
4. Normal formatting according to the edit descriptor (alphanumeric (A), integer (I), or
fixed point (F) is performed.
5. Decorations for alphanumeric and fixed point edit descriptors are performed.
6. The overflow condition is tested.
Default Decorations
When decorations are not specified, Enform Plus prints a negative value with a
preceding negative (-) sign; that is, [MF'-'] is used by default.
If a decoration is specified that tests for a positive value, such as [PF'+'], the default
[MF'-'] no longer automatically applies. In this case, the negative condition must be
explicitly indicated if you want Enform Plus to print the negative sign.
When an overflow condition occurs, Enform Plus replaces the value by enough asterisks
(*) to fill the field; that is, [OA1' *****...***'] is used by default. The OC char
modifier temporarily overrides the default asterisk overflow character.
Possible decorations and their meanings are:
MAn char-string if value is negative, print char-string in position n.
MF char-string if value is negative, print char-string immediately to the left
of right-justified value, immediately to the right of left-justified
value.
MP char-string if value is negative, print char-string immediately to the right
of value.
NAn char-string if value is null, print char-string in position n.
NF char-string if value is null, print char-string immediately to the left of
right-justified value; immediately to the right of left-justified value.
NP char-string if value is null, print char-string immediately to the right of
value.
PAn char-string if value is positive, print char-string in position n.
PF char-string if value is positive, print char-string immediately to the left of
value.