x cd /pub/data/workflow/Tools; %let pgm=genrptsindex; filename pgm "&pgm..sas"; %let urlb=%str(https://mcdc.missouri.edu/reports/workflow/); /**************************************************************************; Only update the output html file after first run of this program. Created and index page listing all states and reports. Programmed by EJCleveland, March 2003 ***************************************************************************/; data _null_; file '/pub/reports/workflow/index.html' lrecl=1024; 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
' / 'Data used in this report is available through MCDC Uexplore application

Areaname Commuting From Commuting To

&statenm html / pdf html / pdf

'; run;