December 2014
Intermediate to advanced
858 pages
40h 10m
English
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 ...
Read now
Unlock full access