In this section: |
The type of FOCUS data source you create depends on the amount of storage you require:
The following table lists the usable bytes in a segment in FOCUS and XFOCUS data sources.
Type of Segment |
FOCUS Data Source |
XFOCUS Data Source |
---|---|---|
Segment in a single-segment Master File |
3968 |
16284 |
Root or leaf of a multi segment Master File |
3964 |
16280 |
Any other type of segment |
3960 |
16276 |
The FOCUS data source size can be a maximum of two gigabytes per physical data file. Through partitioning, one logical FOCUS data source can consist of up to 1022 physical files of up to two gigabytes each.
How to: |
Reference: |
The XFOCUS data source is a database structure that parallels the original FOCUS data source, but extends beyond its capabilities with several significant performance and data volume improvements:
The XFOCUS data source has 16K database pages. The SUFFIX in the Master File is XFOCUS. FOCUS data sources (SUFFIX=FOC) have 4K database pages.
All existing commands that act on FOCUS files work on XFOCUS files. No new syntax is required, except for MDI options.
You can convert to an XFOCUS data source from a FOCUS data source by changing the SUFFIX in the Master File and applying the REBUILD utility.
FILE = filename, SUFFIX = XFOCUS, $
where:
Can be any valid file name.
FOCUS data sources use buffer pages that are allocated by the BINS setting. Buffer pages for XFOCUS data sources are allocated by the XFOCUSBINS setting
SET XFOCUSBINS = n
where:
Is the number of pages used for XFOCUS data source buffers. Valid values are 16 to 1023. 64 is the default value.
The memory is not actually allocated until an XFOCUS data source is used in the session. Therefore, if you issue the ? SET XFOCUSBINS query command, you will see the number of pages set for XFOCUS buffers and an indication of whether the memory has actually been allocated (passive for no, active for yes).
There are two methods for creating an XFOCUS data source. You can either issue the CREATE FILE command or use the HOLD FORMAT XFOCUS command.
Do the following to create an XFOCUS data source using the CREATE FILE command:
CREATE FILE name
where:
Is the name of the Master File that specifies SUFFIX=XFOCUS.
Specify USE...AS for the data sources with suffix FOC and another AS for the data sources with suffix XFOCUS in the same USE.