How to: Access Centrally Controlled Databases Specify Additional USE Options for Centrally Controlled Databases Example: |
The normal limitations of the USE command for SU apply. You cannot concatenate multiple files, rename files (using the AS option), or use the READ parameter for read only access.
To gain access to centrally controlled databases, specify the databases in an extended form of the FOCUS USE command:
USE
fileid1 ON sinkid
fileid2 ON sinkid
.
.
END
where:
In the USE command, you must specify all of the databases you will use under SU, but you can also specify locally controlled databases.
The following USE command accesses the CAR database residing on the A disk of the sink machine MULTID, the EMPLOYEE file residing on the A disk of the sink machine SUID, and the PRODUCT file residing on the source machine's J disk:
USE
CAR FOCUS A ON MULTID
EMPLOYEE FOCUS A ON SUID
PRODUCT FOCUS J
END
Notice that several sink machines can be active at the same time.
ON may be used with AS in the USE command, if the keyword READ is included. The syntax is:
USE action
fileid [READ|NEW] [AS mastername]
or
fileid AS mastername ON server READ
or
fileid LOCAL
or
fileid ON server
.
.
.
END
where:
The following options after the file ID are valid together:
READ and AS
NEW and AS
AS and ON and READ
Any other combination of options after the file ID is not valid.
Unless you are using multi-threaded processing, you do not have to link to the disk containing the centrally controlled databases (CMS LINK and ACCESS commands) to access the FOCUS files. However, both the sink and the source machines must be able to read identical Master Files. If the descriptions are on the source machine user ID, the sink machine user ID should link and gain access to the disk containing the Master Files before the sink machine is started. Alternatively, both the sink and all source machines can link to a separate disk containing the Master Files.
For example, suppose the sink machine is reading Master Files on user ID MULTID. Then the source machine should gain read access to user ID MULTID to read the same descriptions as the sink machine. For example:
CP LINK MULTID 191 200 RR
ACCESS 200 D
At this point, the source and the sink machine are reading the same Master Files.
You can also use the LOCAL keyword to access sink databases directly through the operating system for reporting. Before issuing the USE command, link and access the minidisk containing the database in read-only mode. The USE command must specify the sink database with the ON option, as shown in the following example, followed by a second entry for the database using the LOCAL option. The filemode for the LOCAL option is the mode in which you accessed the disk:
CMS CP LINK MULTID 191 391 RR
CMS ACCESS 391 B
USE
EMPLOYEE FOCUS A ON MULTID
EMPLOYEE FOCUS B LOCAL
END
Information Builders |