Chapter Contents

Previous

Next
SAS Component Language: Reference

Deleting Lists and List Items

You can delete items from SCL lists by specifying the position, or index, of the item to delete; by clearing all of the values from a list; or by deleting the entire list. You can also pop items from lists, which enables you to create queues or stacks. See Using Lists as Stacks and Queues.

Note:   When you delete a list that has sublists, you should delete the list recursively if you do not need to use the information in the sublists. When you do not delete a list, the memory occupied by the list is not available for other tasks. To delete a list recursively, specify Y as the value of the recursively argument in the DELLIST function. For example:

rc=dellist(mylist,'Y');
  [cautionend]

For more information, see Assigning Names to List Items and DELLIST.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.