Types of FOCUS Data Sources

In this section:

The type of FOCUS data source you create depends on the amount of storage you require:


Top of page

x
Using a SUFFIX=FOC Data Source

How to:

Reference:

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.

Note that this discussion applies to any FOCUS data source that has extended beyond one gigabyte, but has not reached the two-gigabyte limit.

In order to enable support for two-gigabyte data sources, you need to set the value of the FOC2GIGDB parameter to ON in the FOCPARM profile.



x
Syntax: How to Enable Two-Gigabyte Support

Issue the following command in the FOCPARM profile or, if the data source is running on a FOCUS Database Server, in HLIPROF

SET FOC2GIGDB = {ON|OFF}

where:

ON

Enables support for FOCUS data sources larger than one gigabyte. Note that an attempt to use FOCUS data sources larger than one gigabyte in a release prior to FOCUS Version 7.1 can cause data corruption.

OFF

Disables support for FOCUS data sources larger than one gigabyte. OFF is the default value.



x
Reference: Usage Notes for a Two-Gigabyte FOCUS Data Source

Top of page

x
Using an XFOCUS Data Source

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.



x
Syntax: How to Specify an XFOCUS Data Source
FILE = filename, SUFFIX = XFOCUS, $

where:

filename

Can be any valid file name.



x
Syntax: How to Control the Number of Pages Used for XFOCUS Data Source Buffers

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:

n

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).



x
Procedure: How to Create an XFOCUS Data Source

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:

  1. Create a Master File that specifies SUFFIX=XFOCUS.
  2. Issue the CREATE FILE command
    CREATE FILE name

    where:

    name

    Is the name of the Master File that specifies SUFFIX=XFOCUS.



x
Reference: Usage Notes for the XFOCUS Data Source


Information Builders