HP Data Entry and Forms Management System (VPLUS) Reference Manual (32209-90024)
Chapter 5 219
Reformatting Specifications
Output Field Menu
types are the same.
Sign
With the SIGN specification, you can indicate where you want either a plus or minus sign
placed in the output field. Any plus sign is removed automatically when a number is
moved to the output field unless you specifically request that it be included with the PLUS
option of SIGN. SIGN has the following options:
SIGN LEFT The sign is placed in the first character position of the field. If this position
contains a blank, the sign replaces it. Otherwise, data may be moved to the
right of a leading zero stripped to accommodate the sign. If needed, a
fractional digit is rounded. If the sign still does not fit, an error occurs and
the field is set to blanks.
SIGN RIGHT The sign is placed in the last character position in the field. As with SIGN
LEFT, every attempt is made to fit the sign in the field, but if it results in
too many characters, an error occurs and the field is set to blanks.
SIGN FLOAT The sign is placed immediately preceding the first nonblank digit in the
field. As with SIGN LEFT a leading zero may need to be stripped or a
fractional digit rounded to accommodate the sign. If it still does not fit, an
error occurs and the field is set to blanks.
SIGN ZONE The sign is represented as an "overpunch" character in the last digit of the
field. (See Table 5-2. for the value of a zoned sign.) No movement of data is
required for this option.
NO SIGN Any sign in the input field is stripped from the field when it is moved to
the output record.
PLUS All the preceding specifications apply to either a minus or a plus sign. The
default is to insert only minus signs. If you want to retain a plus sign, you
must enter Y in the PLUS option as well as indicate where you want the
sign positioned.
If SIGN is not specified, a minus sign is floated for numeric type data and any plus sign is
stripped; character type data is written exactly as entered.
Table 5-4. Examples of Three Types of Justification
Data Type Input Value Specification Output Value
CHAR ∆ABCDEF∆∆ JUSTIFY R
JUSTIFY L
JUSTIFY C
∆∆∆∆ABCDEF
ABCDEF∆∆∆∆
∆∆ABCDEF
DATE 1/30/86∆∆∆ none
JUSTIFY R
JUSTIFY C
1/30/86∆∆
∆∆01/30/86
∆01/30/86∆
DIGIT NUM
or IMP
∆∆123456∆∆ none
JUSTIFY L
JUSTIFY C
∆∆∆∆123456
123456∆∆∆∆
∆∆123456∆∆