楼主: bobguy
2330 3

A Useful tip in writing SAS program ---pipe info into clipboard. [推广有奖]

学科带头人

7%

还不是VIP/贵宾

-

威望
0
论坛币
14187 个
通用积分
28.9279
学术水平
344 点
热心指数
363 点
信用等级
228 点
经验
104882 点
帖子
1846
精华
0
在线时间
1608 小时
注册时间
2008-7-18
最后登录
2019-3-8

中级热心勋章

楼主
bobguy 发表于 2010-3-15 00:18:27 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
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;
二维码

扫码加我 拉你入群

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

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

关键词:clipboard Program writing useful Board SAS writing tip clipboard pipe

已有 1 人评分论坛币 学术水平 收起 理由
crackman + 100 + 1 精彩帖子

总评分: 论坛币 + 100  学术水平 + 1   查看全部评分

本帖被以下文库推荐

沙发
crackman 发表于 2010-3-15 13:06:26
1# bobguy
thank you bobguy
it is very useful,learn more about sql and macro var

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

板凳
dicuike 在职认证  发表于 2010-4-7 23:33:31
楼主,上次在使用你的程序时发生了一点问题,自由度出现了为0的情况,而且t值与P值也无法显示,能否指点一下迷津呢?谢谢!
dicuike@126.com 事在人为!

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-9 13:58