TurboIMAGE/XL Database Management System Reference Manual MPE/iX V6.5 (30391-90011)
462 Chapter9
Using a Remote Database
Access Through a Local Application Program
Figure 9-4. Using Method 3
Using the database-access file, only one database can be accessed using each
database-access file per DSLINE. For example, if two computers are linked through two
DSLINEs, you can open one database on each line.
When the user or an application program calls DBOPEN with the database-access file name,
the remote session is established and the remote database is opened. Then other
TurboIMAGE/XL intrinsics can perform desired operations on the database. Under this
method the remote session is automatically released when the database is closed (with or
without an explicit DBCLOSE call). A second REMOTE HELLO on one DSLINE terminates the
previous REMOTE HELLO. For multiple remote database access, method 1 or method 2 is
recommended. If the database-access file is used, an automatic REMOTE BYE and DSLINE
commands are issued on the communications line specified in the database-access file
when the application program closes the database or terminates execution.
Using method 3, the database administrator can set up a user-table that provides more
control over the database access and enhances database security. To create the
database-access file, use an editor such as EDIT/3000. First use the SET LENGTH command
to accommodate the largest record to be included in the database-access file if the record
exceeds the default length specified for your editor. The length must be less than or equal
to 128 characters.
The following sections discuss how to create, activate, deactivate, and reference a
database-access file.