METHOD 3: USING A DATA-BASE-ACCESS FILE [ QUERY/V Reference Manual ] MPE/iX 5.0 Documentation
QUERY/V Reference Manual
METHOD 3: USING A DATA-BASE-ACCESS FILE
The third method uses a data-base-access file to define the remote data
base. When using the DEFINE or DATA-BASE= command, you enter the name of
a data-base-access file rather than a data base name. Refer to the IMAGE
Reference Manual for information on creating a data-base-access file. In
this method, QUERY automatically issues a REMOTE BYE and closes the
DSLINE when you enter the QUERY EXIT command.
Figure C-3 illustrates Method 3 using DS. The user logs on to the local
system, runs QUERY and specifies a data-base-access file name with the
DATA-BASE= command. The data-base-access file contains the name of a
remote data base and the commands to establish a communications link and
remote session to access the data base DBR that resides on the remote
system. Record 1 of the data-base-access file specifies the remote
system on which the data base resides and the device class of the disc
(DISCA) on which it resides. Record 2 specifies the Distributed Systems
(DS line) and Record 3 indicates the remote username and account name
which is to be used to establish a remote session for USERL.ACCTL.
Figure C-3. Using Method 3
NOTE IMAGE verifies the content of the data-base-access file and will
accept only the DS syntax for the :DSLINE and :FILE commands. This
is due, in part, to the IMAGE restriction on the size of the
dsdevice name to 8 characters. If you are using NS, input the
device class name or logical device number in the first two records
of the data-base-access file.
MPE/iX 5.0 Documentation