TurboIMAGE/XL Database Management System Reference Manual MPE/iX V6.5 (30391-90011)

Chapter 9 461
Using a Remote Database
Access Through a Local Application Program
To use this method you must issue a REMOTE HELLO command (either with the DSLINE
parameter or issue the DSLINE as a separate command) and a FILE equation by calling
the COMMAND intrinsic for each of these commands. Use of the COMMAND intrinsic is
explained in the MPE/iX Intrinsics Reference Manual, and information about accessing
remote files is given in the NS3000/XL User/Programmer Reference Manual. Figure 9-3.
contains a diagram of method 2.
Figure 9-3. Using Method 2
If you want to access more than one remotely located database with an application
program, you must enter one FILE equation for each remote database.
To terminate execution perform the following steps:
1. Close the database.
2. Log off (REMOTE BYE).
3. Close the communication line.
Method 3--Using a Database-Access File
The third method involves creating a special privileged (PRIV) file which is called the
database-access file (DBA file). This file provides TurboIMAGE/XL with the necessary
information to establish a communications link and a remote session. It also specifies the
remote database or database-access file name so that the necessary TurboIMAGE/XL
intrinsics can be executed on the remote computer. Figure 9-4. illustrates method 3.