Economics & Deeplearning

options mprint 질문 본문

SAS/SAS 질문과 답변

options mprint 질문

이슈카 2016. 2. 20. 13:22



%macro prtlast;

proc print data=&syslast (obs=5);

title "Listing of &syslast data set";

run;

%mend;

data sales;

price_code=1;

run;

options mprint mlogic;

%prtlast

을 실행하면 로그창에

MPRINT(PRTLAST):   proc print data=WORK.SALES (obs=5);

MPRINT(PRTLAST):   title "Listing of WORK.SALES                            data set";

MPRINT(PRTLAST):   run;

Work.sales뒤에 공란은 왜생길까요?

==============================================================================================================

dataset 네임은 32자 까지 기억가능하고요, _null_ 인 경우엔 공백이 따라오지 않습니다.

The name is stored in the form libref.dataset. You can insert a reference to SYSLAST
directly into SAS code in place of a data set name. If no SAS data set has been created
in the current program, the value of SYSLAST is _NULL_, with no leading or trailing
blanks.


공백 없애고 싶으시면
%let k=&syslast; 이런식으로 새로 매크로 변수를 만들어주세요.

Comments