In this section: |
How to: |
The FOCUS Database Server is a batch job or started task managing all READ/WRITE operations to a FOCUS data source.
USE fileid ON server END
where:
Is the ddname of the FOCUS data source allocated in the batch job or started task.
To use the EMPLOYEE FOCUS data source allocated to the FOCUS Database Server batch job or started task, two things must be done:
For example,
DYNAM ALLOC FILE MYSERVER DS prefix.FOCSU.DATA SHR
USE EMPLOYEE ON MYSERVER END
How to: |
Performance gains may be achieved by routing read-only requests directly to the data source on disk instead of through the FOCUS Database Server. This is called a multi-thread configuration. It is accomplished with the USE command and the keyword LOCAL.
Allocate the FOCUS data source and issue the USE LOCAL syntax:
DYNAM ALLOC FILE EMPLOYEE DS prefix.EMPLOYEE.FOCUS SHR DYNAM ALLOC FILE MYSERVER DS prefix.FOCSU.DATA SHR USE EMPLOYEE ON MYSERVER EMPLOYEE LOCAL END
For more information about Simultaneous Usage Mode, see your Simultaneous Usage documentation.
Note:
USE EMP01 AS EMPLOYEE ON MULTID READ
In an SU environment, the READ option does not provide read-only access. It is required because alternate Master Files are not supported in SU for MODIFY and MAINTAIN.