TurboIMAGE/XL Database Management System Reference Manual MPE/iX V6.5 (30391-90011)
468 Chapter9
Using a Remote Database
Access Through a Local Application Program
Figure 9-5. Preparing a Database-Access File
1 :HELLO MEMBER1.PAYACCT
.
.
.
2 :EDITOR
HP32201A.00.00 EDIT/3000 FRI, SEP 6, 1991, 3:30 PM
(C) HEWLETT-PACKARD CO. 1985
3 /ADD
1 FILE ORDERS=ORDERS:NODEX
2 DSLINE NODEX
3 MEMBER1.PAYACCT=HELLO MEMBER1.PAYACCT
4 MEMBER2.PAYACCT=HELLO @.PAYACCT
5 //
4 /KEEP ORDDBA,UNN
/END
5 :RUN DBUTIL.PUB.SYS
>>ACTIVATE ORDDBA
Verification follows:
FILE command: Looks good
DSLINE command: Looks good
HELLO command: Looks good
HELLO command: Looks good
ACTIVATED
>>EXIT
END OF PROGRAM
Description
1 Initiate an MPE/iX session by logging on with appropriate user name and
account.
2 Initiate text editor execution.
3 Enter the Editor ADD command in response to the first prompt, then enter
the lines to define the database-access file.
4 Save the work file in a disk file (ORDDBA in the above example).
Remember to keep it unnumbered. Then exit the Editor.
5 Initiate execution of DBUTIL and activate the database-access file ORDDBA.
Verification messages will follow (in session mode). Exit from DBUTIL.
Example
Figure 9-6. illustrates use of the database-access file through a program named
APPLICAN. A description follows the example.