« SAS FAQ #31346987234: The DSD Infile option | Main | Debugging in SAS »

January 28, 2013

Variable Lists

numbered range
total = sum(of Qtr1-Qtr4); *will hit Qtr2, Qtr3, etc.;

name range
specify columns in between those specified
total = sum(of Qtr1--fourth);
total = sum(of Qtr1-numeric-fourth); *only 'numeric' (can use 'character' too) between the variables specified;

name prefix
all columns beginning with specified string

total = sum(of Tot:);


Total = sum(of _All_); *Can also use _Numeric_ or _Character_;

Posted by kkwaiser at January 28, 2013 04:39 PM


Login to leave a comment. Create a new account.