Previous Topic: VARTABLE QUERY Command—Get Vartable Information

Next Topic: VARTABLE UPDATE Command—Update a Vartable Entry


VARTABLE RESET Command—Delete Vartable Entries

The VARTABLE RESET command deletes all, or a group of oldest or newest entries from an existing memory-resident vartable. The command lets you delete multiple entries from an existing vartable while preserving its definition.

This command has the following format:

VARTABLE RESET ID=tablename [SCOPE=scope]
              [OLDEST=n | NEWEST=n]
ID=tablename

Specifies the name of the table.

Characters: A through Z, a through z, 0 through 9, #, $, and @

Limits: 1 through 12 characters

SCOPE={SYSTEM | PROCESS | REGION}

Specifies the scope of the vartable.

Default: PROCESS

OLDEST=n | NEWEST=n

Specifies the number of oldest or newest entries to delete.

Default: Delete all entries.

Example: VARTABLE RESET

'VARTABLE RESET ID=rxtest SCOPE=REGION'

Return Codes

The codes returned are the same as the &ZFDBK values as documented for the NCL &VARTABLE verb.

The return codes are as follows:

0

Indicates that the request was satisfied.

16

Indicates that no table of this name exists in this scope.