討論串[問題] SAS程式碼問題
共 4 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 1→)留言2則,0人參與, 最新作者socery (keep going!)時間13年前 (2012/09/03 23:15), 編輯資訊
0
0
0
內容預覽:
我寫了一個macro 給你用, word 隨便你填~. %macro a(word);. %let dsid = %sysfunc(open(a,i));. %let varlist=;. %do i = 1 %to %sysfunc(attrn(&dsid, nvars));. %let varl
(還有86個字)

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者tew (咖啡王子)時間13年前 (2012/09/03 01:08), 編輯資訊
0
0
0
內容預覽:
proc contents noprint data=work.yourfile out=b(keep=name);. run;. data _null_;. set b nobs=x;. call symputx('x',x);. run;. %macro addroot(a). ;. %do i
(還有174個字)

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者zennage (為什麼)時間13年前 (2012/09/02 12:53), 編輯資訊
0
0
1
內容預覽:
rename + macro 應該可以達到你的目的吧. data temp1;set temp;. %macro add(var=);. rename &var.=A&var.;. %mend add;. %add(var=var1);. %add(var=var2);. %add(var=var3

推噓1(1推 0噓 2→)留言3則,0人參與, 最新作者FSGuitar (fingerstyle)時間13年前 (2012/08/30 16:30), 編輯資訊
0
0
0
內容預覽:
請問一下. SAS有可能辦到. 一個指令就把所有的variable都加上一個數字或字母在每一個variable後呢?. 謝謝. --. 發信站: 批踢踢實業坊(ptt.cc). ◆ From: 140.112.1.187.
首頁
上一頁
1
下一頁
尾頁