Product Documentation

FairCom RTG COBOL Edition User's Guide

Previous Topic

Next Topic

EXTRA_KEYS_OK

Additional indexes can be added to RTG tables via SQL and that changes the file definitions that a COBOL application may see on table open.

Adding SQL Indexes to Sqlized Files

To allow AcuCOBOL to open these tables, EXTRA_KEYS_OK can be enabled in the runtime environment.

Previous Topic

Next Topic

filename_HOST

This variable specifies the file system to use for a particular file. For example, if DEFAULT_HOST is set to VISION, and the file CUSTOMERS is a c-tree file, you could set the environment variable CUSTOMERS_HOST as follows:

Windows

set CUSTOMERS_HOST=CTREE

Unix

CUSTOMERS_HOST=CTREE;

export CUSTOMERS_HOST

This definition directs the runtime to treat CUSTOMERS as a c-tree file. Note that the file name may not include any path or directory name and should not include the file extension.

DEFAULT_HOST and filename_HOST are described in detail in Appendix H, Configuration File Entries, in Book 4 of the ACUCOBOL-GT documentation set.

Previous Topic

Next Topic

SET ENVIRONMENT ACUCOBOL-GT Verb

When your program executes, each time a file is opened, the ACUCOBOL-GT runtime checks filename_HOST and DEFAULT_HOST to determine which file system to use. You can change the value of these variables, just before you open the file, by including the following:

SET ENVIRONMENT "DEFAULT_HOST" TO value

or

SET ENVIRONMENT "filename_HOST" TO value

TOCIndex