HP Data Entry and Forms Management System (VPLUS) Reference Manual (32209-90024)
Chapter 6 267
USING VPLUS INTRINSICS
INTRINSIC DESCRIPTIONS
VCLOSETERM
Closes an open terminal file.
Syntax
VCLOSETERM {
comarea
}
Parameters
comarea
Must be
comarea
named when file was opened by VOPENTERM. If not
already set, the following
comarea
items must be set before calling
VCLOSETERM:
cstatus
Set to zero.
comareaten
Set to total number of two-byte words in
comarea
.
VCLOSETERM may set the following
comarea
items:
ctstatus
Set to nonzero value if call unsuccessful.
filerrnum
Set to file error code if MPE file error.
Discussion
The terminal file opened with the specified
comarea
is closed when this intrinsic is
executed. For terminals with this feature, the local forms storage of the terminal is cleared.
For additional information about about using the pseudo intrinsic .LOC to put and address
into a word of the COMAREA, refer to the COBOL II/XL Reference Manual.
Example
COBOL
CALL "VCLOSETERM" USING COMAREA.
BASIC
200 CALL VCLOSETERM(C(*))
FORTRAN
CALL VCLOSETERM(COMAREA)
SPL/PASCAL
VCLOSETERM(COMAREA);