說明:資料本身有 contain semicolons
Use the DATALINES4 statement 範例如下
libname two "d:\test\two";
filename file1 "d:\test\two\DAY1.sas";
data a ;
length code $100.;
input code & $ ;
file file1 ;
put code $ ;
datalines4;
%Macro DAY1() / store source des="a test for store macro";
%put 今日是 &sysdate;
%Mend DAY1;
;;;;
run;
input code &
這裡面的 &
很重要,沒放的話,遇到 space 就不讀了,變成
%Macro
%put
%Mend
ref: Store and Recall Macros with SAS Macro Libraries
沒有留言:
張貼留言