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

Chapter 6 317
USING VPLUS INTRINSICS
INTRINSIC DESCRIPTIONS
collection only, the batch file information is stored immediately following the data in each
record. Assume a variable-length record with 35 bytes of data:
The total size of this record is 56 bytes. Depending on the size of the data, other records
have varying lengths. The maximum size of the variable-length records must be the size of
the largest data buffer (in bytes) plus 20 bytes for the batch record information.
Example
COBOL
CALL "VOPENBATCH" USING COMAREA, BATCH.
BASIC
170 CALL VOPENBATCH(C(*),Bl$)
FORTRAN
CALL VOPENBATCH(COMAREA,BATCH)
SL/PASCAL
VOPENBATCH(COMAREA,BATCH);
If the requested batch file name is an existing file, it is opened and the user can continue to
enter data into the record following the last record that contains data. If the requested
batch file name is a new file, VOPENBATCH creates a batch file and data entered at the
terminal is written to the first record in the file (record 0).
data
1 ( bytes) 35 37
56
brinfodata
odd byte is wasted
even-byte boundary