郑小知 发表于 2010-10-9 00:14 
crackman是气功派,你是剑派,代码就是你的剑,通过你的一翻笔划,我就豁然开朗了.然后仔细想想CRACKMANd大牛的话,确实是想复杂了.问题解决了.我一直纠缠于 '宏'd 的替换,你的这个思路让我通过另一种方式解决掉了.就是转换日期格式.实在是高,但是如果真的要实现 '宏'd 的替换,这里代码如何写?我尝试了几个连接符,无果. 请hope兄帮我看下.非常感谢.
To write a SAS date constant, enclose a date in quotation marks in the standard SAS form ddMMMyyyy and immediately follow the final quotation mark with the letter D. The D suffix tells SAS to convert the calendar date to a SAS date value.
%let day=09Oct2010;
data _null_;
*** The reference of macro variable should be in double quotation marks.;
date="&day"d;
put "******" date yymmdd10. "***";
run;