Thursday, August 21, 2008

Display 'No Observations'

-
Code for Displaying 'No Observations':
-
***** FINAL IS THE DATASET WITH 0 OBSERVATION *****;
-
proc sql noprint;
select count (*) into : n from final;
run;
-
*if observation is not equal to 0 set final, else if the observation is equal to 0 then display no observation in the first column (usubjid);
-
data disp;
length usubjid $20;
if &n^ = 0 then set final;
else usubjid = 'No Observations';
run;
-

No comments:

Post a Comment