大家好!我是初学者,我运行了一个SAS语句,output窗口中也得出了正确结果,可是我如何才能将output窗口中的数值存储出来?
data ACH1;set ACH;keep date close;run;proc SQL;select * from ACH1where date in (select max(date) from ACH1 group by year(date),month(date));proc sort;by date;run;
以上程序还有一个问题就是没有执行排序?怎么回事?
感谢各位赐教!
请注明:姓名-公司-职位
以便审核进群资格,未注明则拒绝
1. 在output窗口里点右键file-save as; 或者用data step中的 file '..path..';
2. 试试先group data,再做select
proc sql; create table newach1 as
select * where date in (select max(date) from ACH1 group by year(date),month(date));
ods listing close;
ods html file="external file for html output";
proc print data= newach1;
run;
ods html close;
ods listing;