Reads the next non-deleted observation from a SAS data set into the Data Set Data Vector (DDV).
Category: | SAS File I/O |
%let dsid=%sysfunc(open(mydata,i));
%let rc=%sysfunc(fetch(&dsid));
%if &rc ne 0 %then
%put %sysfunc(sysmsg());
%else
%do;
...more macro statements...
%end;
%let rc=%sysfunc(close(&dsid));