How to: Access Centrally Controlled Databases Specify Additional USE Options for Centrally Controlled Databases Example: |
When using centrally controlled data sources, you communicate through the FOCUS Database Server that controls them. So, before issuing requests to SU, you must allocate a communication data set for each FOCUS Database Server you will access. For each allocation supply the following parameters:
Assume, for example, that you will use two FOCUS Database Servers. One server has communication data set SYS1.SU01.DATA allocated to ddname FOCSU and the other has communication data set SYS1.SU02.DATA allocated to ddname FOCSU. To allocate these data sets on your TSO user ID, you would issue the following ALLOC commands:
ALLOC F(SYNCA) DA('SYS1.SUO1.DATA') SHR
ALLOC F(SYNCB) DA('SYS2.SU02.DATA') SHR
You must allocate them in SHR mode so that others can also allocate them. You will reference individual servers by the ddnames to which you allocated their communication data sets. In this example, the first server is SYNCA and the second is SYNCB.
Unless you are using the Multi-Threaded SU Reporting Facility, you do not allocate centrally controlled databases. Instead, you allocate the data sets containing the Master Files for these data sources, which must be identical to the Master Files allocated in the FOCUS Database Server startup JCL.
Allocate all other files as you if you were using FOCUS locally.
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.
In this example the EMPLOYEE and EDUCFILE databases are controlled by the server whose communication data set is allocated to ddname SYNCA, and JOBFILE is controlled by the server whose communication data set is allocated to ddname SYNCB:
USE
EMPLOYEE ON SYNCA
EDUCFILE ON SYNCA
JOBFILE ON SYNCB
END
The following USE command accesses the EMPLOYEE database controlled by the server whose communication data set is allocated to ddname SYNCA, the EDUCFILE database controlled by the server whose communication data set is allocated to ddname SYNCB, and the PRODUCT database allocated in the client address space:
USE
EMPLOYEE ON SYNCA
EDUCFILE ON SYNCB
PRODUCT
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.
Information Builders |