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

302 Chapter6
USING VPLUS INTRINSICS
INTRINSIC DESCRIPTIONS
The following chart will help you correlate VPLUS data types with VGETtype intrinsics
and programming language data types.
1. If errors occur during conversion, the two-byte status word in the communications area
is set to an error value.
2. If the requested field has been flagged as having an error (perhaps by VFIELDEDITS or
VSETERROR), the conversion is performed, but the two-byte status word is also set to an
error value.
3. An attempt to convert a number larger than 32767 using VGETINT returns an error
value (504) in the two-byte status word and leaves the receiving value unchanged.
4. All numeric separators are stripped before conversion is performed.
5. Fields of type CHAR may be converted as long as they contain numeric characters
(including signs and separators). Otherwise, an error value is returned in the two-byte
LONG Floating -point format using eight-bytes; sign bit in bit 0; an exponent (biased by +256) in
bits 1 through 9, and a positive fraction in the remaining 54 bits in HP 3000 format. (Not
used by COBOL programs.)
PACKED COBOL only;
comp-3
. See COBOL II/3000 Reference Manual.
ZONED COBOL only. See COBOL II/3000 Reference Manual.
YYMMDD Six-byte ASCII, in format YYMMDD; for example, 870623.
Table 6-14. Correlation of VGETtype with the Data Types for each Language
Language Intrinsic Data Type
FORTRAN VGETINT
VGETDINT
VGETREAL
VGETLONG
Integer*2
Integer*4
Real Double
Precision
BASIC VGETINT
VGETREAL
VGETLONG
Integer
Real
Long
SPL VGETINT
VGETDINT
VGETREAL
VGETLONG
Integer
Double
Real
Long
COBOL VGETINT
VGETDINT
S9-S9(4)COMP
S9(5)-S9(9)COMP
PASCAL VGETINT
VGETDINT
VGETREAL
VGETLONG
Subrange -32768..32767
Integer
Real
Longreal
Table 6-13. Numeric Type Conversions
Type Format