%macro sss(dat,num);
%global mm;
data test;
set &dat;
%if age eq &num %then %do;
retain sum 0;
sum=sum+1;
output;
%end;
call symput('mm',sum);
run;
%mend sss;
%sss(sashelp.class, 13);
%put &mm;

|
楼主: sasa1881
|
1553
5
请教一段程序,哪里有错? |
|
已卖:297份资源 硕士生 36%
-
|
回帖推荐The four benefits of CALL SYMPUTX are:
1.) CALL SYMPUTX does not write a note to the SAS log when the second argument is numeric. CALL SYMPUT, however, writes a note to the log stating that numeric values were converted to character values.
2.) CALL SYMPUTX uses a field width of up to 32 characters when it converts a numeric second argument to a character value. CALL SYMPUT uses a field width of ...
本帖被以下文库推荐
| ||
|
|
| ||||||||||||||||||||
|
观钓颇逾垂钓趣 种花何问看花谁
|
||||||||||||||||||||
| |||||||||||||||||
加好友,备注cda京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明


