October 2019
Intermediate to advanced
430 pages
19h 4m
English
%macro CourseLoc; /*1*/ proc sql noprint; select distinct Location into: loc1- from certadv.schedule; quit; %do i=1 %to &sqlobs; /*2*/ title "Courses Offered in &&loc&i"; proc print data=certadv.schedule; where location="&&loc&i"; run; %end; %mend CourseLoc; /*3*/ %Courseloc /*4*/
| 1 | The %MACRO statement defines the macro CourseLoc. The macro itself executes a PROC SQL query where a series of macro variables are created. The macro variables store distinct values of the Location column from the Certadv.Schedule data set. ... |
Read now
Unlock full access