Hash Objects Syntax Alphabetically


A C D E F H I L N O P R S

Name
Syntax and Description
rc=object.ADD(<KEY: keyvalue-1,…, KEY: keyvalue-n, DATA: datavalue-1,…, DATA: datavalue-n > );
Adds the specified data that is associated with the given key to the hash object.
Product: Base SAS
Document: SAS Language Reference: Dictionary
rc=object.CHECK(<KEY: keyvalue-1,…, KEY: keyvalue-n > );
Checks whether the specified key is stored in the hash object.
Product: Base SAS
Document: SAS Language Reference: Dictionary
rc=object.CLEAR();
Removes all items from the hash object without deleting the hash object instance.
Product: Base SAS
Document: SAS Language Reference: Dictionary
rc=object.DEFINEDATA('datavarname-1'<,…'datavarname-n'> ); rc=object.DEFINEDATA(ALL: 'YES' | “YES”);
Defines data, associated with the specified data variables, to be stored in the hash object.
Product: Base SAS
Document: SAS Language Reference: Dictionary
rc = object.DEFINEDONE( ); rc = object.DEFINEDONE(MEMRC: 'y');
Indicates that all key and data definitions are complete.
Product: Base SAS
Document: SAS Language Reference: Dictionary
rc=object.DEFINEKEY('keyvarname-1'<…, 'keyvarname-n'> ); rc=object.DEFINEKEY(ALL: 'YES' | ”YES”);
Defines key variables for the hash object.
Product: Base SAS
Document: SAS Language Reference: Dictionary
rc=object.DELETE( );
Deletes the hash or hash iterator object.
Product: Base SAS
Document: SAS Language Reference: Dictionary
rc=object.EQUALS(HASH: 'object', RESULT: variable name);
Determines whether two hash objects are equal.
Product: Base SAS
Document: SAS Language Reference: Dictionary
rc=object.FIND(<KEY: keyvalue–1,…, KEY: keyvalue-n > );
Determines whether the specified key is stored in the hash object.
Product: Base SAS
Document: SAS Language Reference: Dictionary
rc=object.FIND_NEXT( );
Sets the current list item to the next item in the current key's multiple item list and sets the data for the corresponding data variables.
Product: Base SAS
Document: SAS Language Reference: Dictionary
rc=object.FIND_PREV( );
Sets the current list item to the previous item in the current key's multiple item list and sets the data for the corresponding data variables.
Product: Base SAS
Document: SAS Language Reference: Dictionary
rc=object.FIRST( );
Returns the first value in the underlying hash object.
Product: Base SAS
Document: SAS Language Reference: Dictionary
rc=object.HAS_NEXT(RESULT: R);
Determines whether there is a next item in the current key's multiple data item list.
Product: Base SAS
Document: SAS Language Reference: Dictionary
rc=object.HAS_PREV(RESULT: R);
Determines whether there is a previous item in the current key's multiple data item list.
Product: Base SAS
Document: SAS Language Reference: Dictionary
variable_name=object.ITEM_SIZE;
Returns the size (in bytes) of an item in a hash object.
Product: Base SAS
Document: SAS Language Reference: Dictionary
rc=object.LAST( );
Returns the last value in the underlying hash object.
Product: Base SAS
Document: SAS Language Reference: Dictionary
rc=object.NEXT( );
Returns the next value in the underlying hash object.
Product: Base SAS
Document: SAS Language Reference: Dictionary
object-reference = _NEW_ object(< argument_tag-1: value-1 <, …argument_tag-n: value-n > > );
Creates an instance of a hash or hash iterator object.
Product: Base SAS
Document: SAS Language Reference: Dictionary
variable_name=object.NUM_ITEMS;
Returns the number of items in the hash object.
Product: Base SAS
Document: SAS Language Reference: Dictionary
rc=object.OUTPUT(DATASET: 'dataset-1 <(datasetoption)> ' <…, DATASET: 'dataset-n'> ('datasetoption <(datasetoption)> ');
Creates one or more data sets each of which contain the data in the hash object.
Product: Base SAS
Document: SAS Language Reference: Dictionary
rc=object.PREV( );
Returns the previous value in the underlying hash object.
Product: Base SAS
Document: SAS Language Reference: Dictionary
rc=object.REF(<KEY: keyvalue-1,…, KEY: keyvalue-n, DATA: datavalue-1,…, DATA: datavalue-n > );
Consolidates the FIND and ADD methods into a single method call.
Product: Base SAS
Document: SAS Language Reference: Dictionary
rc=object.REMOVE(<KEY: keyvalue-1,…, KEY: keyvalue-n > );
Removes the data that is associated with the specified key from the hash object.
Product: Base SAS
Document: SAS Language Reference: Dictionary
rc=object.REMOVEDUP(<KEY: keyvalue-1,…, KEY: keyvalue-n > );
Removes the data that is associated with the specified key's current data item from the hash object.
Product: Base SAS
Document: SAS Language Reference: Dictionary
rc=object.REPLACE(<KEY: keyvalue-1,…, KEY: keyvalue-n, DATA: datavalue-1,…, DATA: datavalue-n > );
Replaces the data that is associated with the specified key with new data.
Product: Base SAS
Document: SAS Language Reference: Dictionary
rc=object.REPLACEDUP(<DATA: datavalue-1,…, DATA: datavalue-n > );
Replaces the data that is associated with the current key's current data item with new data.
Product: Base SAS
Document: SAS Language Reference: Dictionary
rc=object.SETCUR(KEY: 'keyvalue-1' <,…,KEY: 'keyvalue-n'> );
Specifies a starting key item for iteration.
Product: Base SAS
Document: SAS Language Reference: Dictionary
rc=object.SUM(SUM: variable-name);
Retrieves the summary value for a given key from the hash table and stores the value in a DATA step variable.
Product: Base SAS
Document: SAS Language Reference: Dictionary
rc=object.SUMDUP(SUM: variable-name);
Retrieves the summary value for the current data item of the current key and stores the value in a DATA step variable.
Product: Base SAS
Document: SAS Language Reference: Dictionary