全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1391 2
2019-02-27
复制代码
以上代码中,运行以后RC值为什么是low而不是high,我在sas里面跑出来的结果依然是low,不知道原因,求教
原题目是:
The data set SASHELP.PRDSALE has 50 observations. What is the value of the variable RC when the macro finishes execution?
A.low
B.high
C.Begin
D.Before Execution


二维码

扫码加我 拉你入群

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

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

全部回复
2019-2-27 23:07:38
Because the %LET statements are always processed by the macro processor before the DATA step is executed, the value is always whatever the last %LET statement assigns.中文意思是%LET statements给宏赋值,因为 宏赋值总是比DATA步优先, 所以DATA步里的if then 对%LET statements 赋值没有处理能力, 得到的 宏值 总是最后%LET statement的赋值。这里最后的%LET statements是%let rc = low;所以得到的结果就是low。
二维码

扫码加我 拉你入群

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

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

2019-2-28 09:27:05
xiaopingN 发表于 2019-2-27 23:07
Because the %LET statements are always processed by the macro processor before the DATA step is exec ...
感谢大神
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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