1。让SAS支持YYYYMM的日期格式
var1="200206";
date1=input(var1,yymmn6.);
2。proc copy 过程用于libname之间的member复制
3。BLOCK控件没由LABEL属性,但有_setlabel方法,调用如下:
CALL NOTIFY (block-name, '_setLabel', label); |
4.proc sort过程的tagsort选型有利于宽数据集的排序
5.
In the following example, DATDIF returns the actual number of days between two dates, and the number of days based on a 30-month and 360-day year.
data _null; sdate='16oct78'd; edate='16feb96'd; actual=datdif(sdate, edate, 'act/act'); days360=datdif(sdate, edate, '30/360'); put actual= days360=; run;
SAS Statements | Results |
---|---|
put actual=; | 6332 |
put days360=; | 6240 |