HP Data Entry and Forms Management System (VPLUS) Reference Manual (32209-90024)

Chapter 5 215
Reformatting Specifications
Output Field Menu
than CHAR.
Table 5-2. Standard Formatting by Data Types
Destination
Data Type
Standard Formatting
CHAR Conversion: none. Data movement: Move data to output field, character by
character from leftmost character (including blanks) through last character
(including blanks). If the data is shorter than the output field, pad with blanks on
the right. If the data is longer than the output field, truncate on the right.
Assume a value with length=10 ∆∆∆CHAR∆∆∆
moved to CHAR field, length=10 ∆∆∆CHAR∆∆∆
to CHAR field, length=15 ∆∆∆CHAR∆∆∆∆∆∆∆∆
to CHAR field, length=5 ∆∆∆CH
DATE Conversion and Movement: Convert entered date to
dd/dd/dd
, where the order of
digits depends on the date type. A date is written to MDY type field as
mm/dd/yy
;
to DMY type field as
dd/mm/yy
; to YMD field as
yy/mm/dd
. Write converted date,
character by character, to the output field starting with the leftmost character. If
the date is shorter than the field, fill with blanks on the right; if longer than the
field, issue error message.
Assume an MDY date, length=12 JAN 31, 1986
moved to MDY field, length=12 01/31/86∆∆∆
to DMY field, length=8 31/01/86
to YMD field, length=8 86/01/31
to any date field, length=7 ERROR
DIGIT Conversion and Movement: Strip any leading zeros. Right justify converted data
in the output field. If the data is shorter than the field, pad it with blanks on the
left. If the data is too long for the output field, strip any leading blanks, one at a
time until the data fits. If, after all leading blanks are removed, the data does not
fit, issue error message.
Assume an integer, length=7 0012345
moved to DIGIT field, length=7 ∆∆12345
to DIGIT field, length=10 ∆∆∆∆∆12345
to DIGIT field, length=5 12345
to DIGIT field, length=4 ERROR