Previous Page | Next Page

Hash and Hash Iterator Object Language Elements

DELETE Method



Deletes the hash or hash iterator object.
Applies to: Hash object
Hash interator object

Syntax
Arguments
Details

Syntax

rc=object.DELETE( );


Arguments

rc

specifies whether the method succeeded or failed.

A return code of zero indicates success; a non-zero value indicates failure. If you do not supply a return code variable for the method call and the method fails, then an appropriate error message is printed to the log.

object

specifies the name of the hash or hash iterator object.


Details

DATA step component objects are deleted automatically at the end of the DATA step. If you want to reuse the object reference variable in another hash or hash iterator object constructor, you should delete the hash or hash iterator object by using the DELETE method.

If you attempt to use a hash or hash iterator object after you delete it, you will receive an error in the log.

If you want to delete all the items from within a hash object and save the hash object to use again, use the CLEAR Method.

Previous Page | Next Page | Top of Page