全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
2296 3
2010-03-15
I use three fingers for typing and it is hard for me and time consuming.

In SAS, one may pipe some usful information into clipboard and do a <crtl> -v to paste it into the program editor window. Then you can tailor those information and save you a great deal of time in writing programs.

Here is an example.

enter,

<crtl>-v                         *== paste;

in the program editor window after running the program below.

***************************************;
data tmp;
array var(2000);
do i = 1 to 500;
   var(i)=i;
end;
keep var:;
run;

proc sql noprint;
select name  into: vlist1 separated by ' '
from dictionary.columns
where upcase(libname)='WORK' and upcase(memname)='TMP'
         ;
quit;

filename dummy clipbrd;
data _null_;
file dummy;
put "&vlist1";
run;
二维码

扫码加我 拉你入群

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

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

全部回复
2010-3-15 13:06:26
1# bobguy
thank you bobguy
it is very useful,learn more about sql and macro var
二维码

扫码加我 拉你入群

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

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

2010-3-15 13:21:08
学习了。
调用dictionary.columns涉及到view的使用以及对应index的重建,有时候可能比较慢
用proc contents可能会快一点
从库名和表名参数化(宏)可行性来说也都可以实现(两者等价)
二维码

扫码加我 拉你入群

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

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

2010-4-7 23:33:31
楼主,上次在使用你的程序时发生了一点问题,自由度出现了为0的情况,而且t值与P值也无法显示,能否指点一下迷津呢?谢谢!
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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