Returns the value of a SAS data set character variable.
Category: | SAS File I/O |
is a numeric constant, variable, or expression that specifies the data set identifier that the OPEN function returns.
is a numeric constant, variable, or expression that specifies the number of the variable in the Data Set Data Vector (DDV).
Tips | You can obtain this value by using the VARNUM function. |
This value is listed next to the variable when you use the CONTENTS procedure. |
%let mydataid=%sysfunc(open (sasuser.houses,i)); %let rc=%sysfunc(fetchobs(&mydataid,10)); %let style=%sysfunc(getvarc(&mydataid, %sysfunc(varnum (&mydataid,STYLE)))); %let rc=%sysfunc(close(&mydataid));