Returns the value of a SAS data set numeric 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 rc=%sysfunc(fetchobs(&mydataid,10));
%let price=%sysfunc(getvarn(&mydataid,
                   %sysfunc(varnum
                        (&mydataid,price))));