Database Environment Name and Location [ HP ALLBASE/4GL Developer Administration Manual ] MPE/iX 5.0 Documentation
HP ALLBASE/4GL Developer Administration Manual
Database Environment Name and Location
An HP ALLBASE/4GL application can access a database environment anywhere
in the MPE/iX file system.
HP ALLBASE/SQL uses a DBECon file to identify the name and location of a
database environment. The application definition screen in the HP
ALLBASE/4GL administrator application contains a field that allows you to
specify the name of the DBECon file for the database environment for an
application.
HP ALLBASE/4GL uses an MPE/iX variable HP4SQLPATH to determine the
location of the DBECon file.
Unless you specify a fully qualified name for the DBEcon file (that is, a
name in the form FILE.GROUP.ACCOUNT), HP ALLBASE/4GL appends the current
value of the HP4SQLPATH variable to the name you enter in the the DBECon
file field to determine the name of the file. If HP4SQLPATH is not
defined, HP ALLBASE/4GL searches for the DBECon file in the user's
current logon group and account.
Application Unloading and Loading
When an application is unloaded from the HP ALLBASE/4GL developer
environment, the name of the database environment used in the developer
environment is included in the application definition record. This name
is written into the destination system during the application loading
procedure.
During the application loading procedure, the loading utility attempts to
connect to the database environment specified in the application
definition record. If this database does not exist, HP ALLBASE/4GL
displays a message asking you to enter the name of a database environment
for the application. If you enter the name of a database environment
that is not the same as the database environment shown on the application
definition screen, HP ALLBASE/4GL amends the application definition
screen automatically at the conclusion of the loading procedure.
MPE/iX 5.0 Documentation