2016-03-28 24 views
-2

Makro içinde bir libname kullanmaya çalışıyorum, ancak çok sayıda hata üretiyor.Makro içinde SAS libname

libname result 'G'; 

%macro datain(yr); 

data dc_&yr; 
set result.dc_&yr; 
end; 

%mend datain; 

Hata

SYMBOLGEN: Macro variable YR resolves to 2014 
SYMBOLGEN: Macro variable YR resolves to 2014 
161: LINE and COLUMN cannot be determined. 
NOTE: NOSPOOL is on. Rerunning with OPTION SPOOL might allow recovery of the LINE and COLUMN 
     where the error has occurred. 
ERROR 161-185: No matching DO/SELECT statement. 

cevap

0

Verilerinizin adımını sonlandırmak için run; kullanmak gerekir. Bunun yerine end; yazdınız.

+0

Teşekkür ederiz. Bunu hiç görmedim. – user3486062