x cd /pub/data/workflow/Tools; %let pgm=genrptsindex; filename pgm "&pgm..sas";
%let urlb=%str(https://mcdc.missouri.edu/reports/workflow/);
data _null_;
file '/pub/reports/workflow/index.html';
put '
 | |
|
|
MCDC 2000 County to County Work Flow Reports |
|
|
Areaname |
Commuting From |
Commuting To |
|
|
';
%let space=%str( );
%macro doit(state,stab);
%global urlb;
%let filename=%sysfunc(compress(&statenm)); *---remove blanks from "North Carolina", for example--;
%let urlRH=&urlb.&filename.Rsort.html;
%let urlRP=&urlb.&filename.Rsort.pdf#pagemode=none;
%let urlWH=&urlb.&filename.Wsort.html;
%let urlWP=&urlb.&filename.Wsort.pdf#pagemode=none;
put
"| &statenm | "
" html / pdf | "/
" html / pdf | |
";
%mend doit;
*----invoke the doit macro once for every state and have the macro create variable statenm with the
name of each state that can be referenced within the doit macro---;
options mprint;
%dostates(names=1)
put
'
|
';
run;