The Access File

In most environments, you select a PSB prior to invoking FOCUS. However, if you connect to IMS using the DBCTL environment, you select the PSB during your session, and you have the option of switching PSBs between requests.

You have two options for selecting a PSB within the session:

If you use an Access File, the Interface identifies the appropriate PSB when you reference a Master File in a request. The selection is automatic and transparent to you.

Each Access File contains one attribute starting within the first eight bytes. The syntax is

PSB=psbname,$

where:

psbname
Indicates the name of the FOCPSB library member to use. This name must be identical to the name of the actual PSB that IMS will access. If the member does not exist, the following error message is generated:

(FOC4261) FOCPSB MEMBER NOT FOUND: psbname

Access Files are members of a partitioned dataset. The member name of an Access File within its partitioned dataset must be the same as the member name of the corresponding Master File within its partitioned dataset. At run time, the Access File dataset is allocated to ddname ACCESS. (This allocation is optional if all PSB selection is dynamic.)

Note:

The following is a sample Access File corresponding to the DI21PART Master File. The Access File is member DI21PART in the Access File library:

PSB=FOCSD,$


Information Builders