Terminal Configuration with VPLUS

As in all environments, what the operating system and program know about the display device affects the handling of screen I/O. This is equally true for HP e3000 COBOL applications that use VPLUS. To enable VPLUS applications to override some of its default values, VPLUS employs an environment control file, VENVCNTL. When VPLUS starts up, VPLUS checks for the existence of VENVCNTL.PUB.SYS or a file equated to the formal file designator. If no VENVCNTL file exists, the standard VPLUS defaults are used.

VENVCNTL is a simple text file that contains only one line of data. Each override option may be activated by setting the option byte number to 1. For example, in the VENVCNTL file below, option 6 is set.

:PRINT VENVCNTL.PUB.SYS
000001

Option 6 tells VPLUS to extend terminal status reads to ensure that an input termination character is accounted for.

If you are using a VT-MGR connection you should set option 6. If you don't set option 6, the keyboard might become locked.

If you are using a TELNET or DTC connection you should not set option 6. If you do, a call to VCLOSETERM might result in an error 10.

If you are using ACUCOBOL-GT VPLUS programs with a variety of terminal types, you might want to create environment control files for each terminal type and then use a FILE equation to match the terminal type with the correct environment control file. For example:

:FILE VENVCNTL.PUB.SYS=file.group.account

where VENVCNTL.PUB.SYS is always fully specified and file.group.account is the name of the file containing your connection specific settings.

For HP documentation on this topic, see http://docs.hp.com/mpeix/onlinedocs/32209-90024/32209-90024.html and navigate to Application Notes/Using the VPLUS Environment Control File (VENVCNTL).