combine one-obs dataset to multi-obs dataset

Explain the meaning of the following SAS code.
data ds5 (drop=type freq );
retain style exercisetype sales grandtotal percent;
if N=1 then
set sh3;
set sh;
percent=round(sales/grandtotal,0.00001)*100;
run;

posted @ 2023-09-20 18:12  helloyuen  阅读(2)  评论(0编辑  收藏  举报