由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Science版 - Re: [转载] sas expert, help please;
相关主题
Re: 请教一个SAS的问题Re: WWW增强功能
Re: Any AI experts? HELP!complexity question
哪位用过SCIENCEDOCS修改英文?赠送ID
Re: sas macro231051
有一个可以从paper的图上读出数据的软件Re: 赠送ID -- 发奖吧?
Clinical SAS training will start soon!Companies for monoclonal Antibody production?
Clinical SAS training will start soon!Stupid SAS programming style is driving me crazy....
Last reminder: SAS clinical training will start in a week!用尽心思做好了一个macro
相关话题的讨论汇总
话题: sas话题: expert话题: macro话题: expression话题: think
进入Science版参与讨论
1 (共1页)
d****r
发帖数: 2912
1
I think in Macro SAS, &y just literally subsitute the expression
of y into the expression, then calculate.
在 duo (多多逸善) 的大作中提到: 】
after you call v(3,8-1) the statement here is
x=3 - 8-1
not x=3-(8-1)
so you get -6 instead of -4.
Try this:
%macro v(y, z);
data a;
x=&y &z;
;
%mend;
%v(3-2*,2*2);
proc print ;
what is the result? I think you got it:))
1 (共1页)
进入Science版参与讨论
相关主题
用尽心思做好了一个macro有一个可以从paper的图上读出数据的软件
Need advice on SAS macro debuggingClinical SAS training will start soon!
R 语言有像SAS 一样的macro吗?Clinical SAS training will start soon!
女的是不是和很多男的上过床,人生才比较值得?????????Last reminder: SAS clinical training will start in a week!
Re: 请教一个SAS的问题Re: WWW增强功能
Re: Any AI experts? HELP!complexity question
哪位用过SCIENCEDOCS修改英文?赠送ID
Re: sas macro231051
相关话题的讨论汇总
话题: sas话题: expert话题: macro话题: expression话题: think