문자열을 포함하는 변수를 매크로에 할당하는 방법은 무엇입니까?SAS : 매크로 할당
%let HOLD_MONTHS=1;
data _null_;
if &HOLD_MONTHS=1 then hold='h1m';
*temp='model_h1m';
temp=catx('_','model',hold);
*how to assign 'model_h1m to the macro a?;
%let a = %str(temp);
run;
*now the following print "temp";
%put &a;
은'%의 let' 나는 아래의 코드의 코멘트에 내 질문에 넣었습니다 명령문은 매크로 컴파일시, 즉 데이터 단계가 컴파일되기 전에 실행됩니다. 그 순간, '임시 직원'은 프로그램의 일부인 텍스트 만 존재합니다. 변수와 같은 것은 없습니다. –