全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1192 1
2012-06-27
%Let eom= 1205;
%let startdt='2007/11'd;
%let enddt='2009/04'd;
/********************* Please update the dates ******************/
data CF;
set
Base.cfmc&
eom.;

where &
startdt. <= exposmth <= &enddt. and lob = 'PI';

其中exposmth是'2007/11'这样形式的

582 where &startdt. <= exposmth <= &enddt. and lob = 'PI';
-- -- -
22 22 22
-------- ----
202 200
NOTE: Line generated by the macro variable "ENDDT".
1 '2009/04'
---------
200
ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, (, ;, END, KEY,
KEYS, NOBS, OPEN, POINT, _DATA_, _LAST_, _NULL_.
ERROR 202-322: The option or parameter is not recognized and will be ignored.
ERROR 200-322: The symbol is not recognized and will be ignored.

为什么会有这样的问题,谢谢各位高手了!!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2012-6-27 21:06:52
你的Sas什么版本的?9.2以下的版本好像只认201206这样的年月型日期数据
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群