Prtlast
:
%macro prtlast; %if &syslast ne _NULL_ %then %do; proc print data=&syslast(obs=5); title "Listing of &syslast data set"; run; %end; %else %put No data set has been created yet.; %mend;
Prtlast
macro
is stored in a temporary SAS catalog as Work.Sasmacr.Prtlast.Macro.
Macros that are stored in this temporary SAS catalog are known as
session-compiled macros. Once a macro has been compiled, it can be
invoked from a SAS program as shown here: proc sort data=sasuser.courses out=bydays;
by days;
run;
%prtlast
18.223.171.162