Chapter Contents

Previous

Next
SAS Component Language: Reference

Retrieving Values from Lists

To retrieve the value of an item in a list, use the GETITEMN, GETNITEMN, GETITEMC, GETNITEMC, GETITEML, GETNITEML, GETITEMO, or GETNITEMO function.

With arrays, you use

x=A{i};

but with SCL lists, you use

x=getitemn(listid,i);

See also Assigning Names to List Items.


Chapter Contents

Previous

Next

Top of Page

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