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 '
'; %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 "" ""/ ""; %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 '
Missouri Information/Data
MCDC 2000 County to County Work Flow Reports

Areaname Commuting From Commuting To

&statenm html / pdf html / pdf

'; run;