CLEAR-ARRAY

Syntax

CLEAR-ARRAY NAME=array_name

Description

Resets each field of an array to its initial value.

The CLEAR-ARRAY command resets each field of the named array to the initial value specified for that field in the CREATE-ARRAY command. If no initial value was specified, numeric fields are reset to zero, text fields are reset to null, and date fields are reset to null. CLEAR-ARRAY also releases all memory that was used by the specified array and returns it to its pristine state.

Parameters

Parameter Description

NAME

Specifies the name of the array to be cleared.

Example

The following example illustrates the CLEAR-ARRAY command:

clear-array  name=custs

See CREATE-ARRAY