%do %while(%sysfunc(fetch(&dsid))=0);

Loop through all the values in the data set.

Return