Previous Topic: RESOURCE TABLE Statement ParametersNext Topic: Example: RESOURCE TABLE Statement


RESOURCE TABLE Statement Usage

What are Resources

A resource is either a database or a node (system) from which requests for a database are forwarded. You specify a node name as a DESTINATION when:

Using Wildcards for Resource Names

You can use a wildcard character with the db-name and destination-name variables. For example, you could define:

ADD RESOURCE TABLE
 DBNAME IS MIS* VIA SYSTEM84

MIS* would be a single entry in the resource name table. At runtime, any request for a database name with MIS, would be matched with MIS* and routed to SYSTEM84.

Additionally, CA IDMS automatically generates the following entries as the last two entries in the resource name table:

DBNAME * LOCAL
DESTINATION *.

This ensures that all database requests are routed to the DC/UCF system you are defining.

Sequence of Resource Names is Important

CA IDMS generates entries in the resource name table in the order they are defined on the RESOURCE TABLE statement. This is important because the resource name table is searched from the beginning of the table to the end until a match is found. The first match CA IDMS finds in the resource name table is the node name it will use to locate the requested resource.

You should define specific resource names first and less specific resource names next.

If the resource is not located in the resource name table or the node name does not match the node name specified on the request, an error is returned to the application program.

Specifying Resources

The type of resource you specify is either a database or a destination (nodename). In most cases, you will specify a database name.

The only time you need to explicitly define a destination resource is when the target node is not defined using a NODE statement. This can be the case because:

Modifying the Resource Table

You can modify and delete individual entries in the resource table without deleting the entire resource table. Use the EXCLUDE clause of the RESOURCE TABLE statement to delete a specific DBNAME or DESTINATION entry from the resource table.

Use the MODIFY RESOURCE TABLE statement to add new entries to an existing resource table. Note that new entries added to the resource table on a MODIFY operation are added to the end of the resource table. To control the sequence of entries in the resource table when adding new entries to an existing resource table, you have to delete and then add the resource table; submitting the entries in the sequence you want them to appear in the resource table.

You can also modify the LOCAL/VIA option to change the location of a database name resource.