%let dsid=%sysfunc(open(sasuser.houses)); %put The current open data set is %sysfunc(dsname(1)); I just copied this from the sas documentation site, but it is throwing error. I tried using datastep method as well, rather than macro function , but it is still the same. Below is the log: 338 %let dsid=%sysfunc(open(sasuser.houses)); 339 %put The current open data set 340 is %sysfunc(dsname(1)); WARNING: Argument 1 to function DSNAME referenced by the %SYSFUNC or %QSYSFUNC macro function is out of range. The current open data set is 341 Do anyone know why so?
... View more