October 2019
Intermediate to advanced
430 pages
19h 4m
English
footnote 'Printed on
%sysfunc(today(),worddate.)'; /*1*/
%macro test (dsn=, vars=); /*2*/
proc print data=&dsn;
where begin_date=21774;
var &vars;
run;
%mend test; /*3*/
%test(dsn=certadv.all, vars=course_code fee); /*4*/
| 1 | The %SYSFUNC function executes the SAS function TODAY and formats the value Worddate. using the macro facility. |
| 2 | The %MACRO statement defines the macro Test, which accepts the keyword parameters Vars and Dsn. The macro generates a PROC PRINT step. |
| 3 | The %MEND statement ends the macro definition ... |
Read now
Unlock full access