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

Chapter 5 189
Reformatting Specifications
Relation of Forms to Output Records
Separating Data into Several Records
In the following example, Figure 5-5., data entered on form A is separated into three
output records, each a fixed length of 40 bytes. Data from a subsequent form is written to a
single 40-byte record. If any group of data is less than the 40-byte record length, the record
is padded with blanks. The data cannot be formatted to exceed the record length.
Figure 5-5. Separating Data from 1 Form into Several Records
Reformatting Repeating Forms
In Figure 5-6., form B is a repeating form that may occur a variable number of times. The
reformat file in this example causes data entered on forms A, B, and C to be written to a
data:
form A
form B
form A
form B
form A
form B
2
rec #
GLOBALS
INPUT FORMS SEQ
OUTPUT REC. DEF
form A (Ref. Id)
* = start-of-record marker
REFORMAT FILE
BATCH FILE
rec #
1
2
3
4
5
6
3
4
field 1 form A*
field 5 form A
field 15 form A
field 1 form B*
field 8 form B
OUTPUT FIELD 1A
OUTPUT FIELD 8B
fields:
A
A
A
B
A
A
1
5
6
7
8
Record = fixed
Length = 40 chars.
field 8 form A
field 6 form A*
field 7 form A
field 9 form A*
OUTPUT FIELD 1A
OUTPUT FIELD15A
INPUT FORMS SEQ.
form B (Ref Id)
OUTPUT REC. DEF
OUTPUT FILE
(15 fields)
(15 fields)
(1-5, 8)
(6,7)
(9-15)
(1-5, 8)
A
(9-15)
B
(6, 7)