x cd /pub/data/acs/Tools; %let pgm=gen_tableselect_code; filename pgm "&pgm..sas"; *--Generate the html code to be (literally copided-and-pasted) into /pub/websas/acsmcdcprofiles_extract_menu.sas for letting user select a table from that we app. We read the Variables5yr.html file for latest year. The "tables" referred to here are from the mcdcprofiles datasets - it has nothing to do with BASE tables!!!!!. jgb, 4-27-13. --*; filename htmlin '/pub/data/acs2011/Variables5yr.html'; filenAme htmlout 'tempmenucode.html'; data _null_; infile htmlin; input; ix=index(_infile_,'Table:'); if ix; str=substr(_infile_,ix+7); tablename=substr(str,1,length(str)-6); *--removes from end of string--; tableid=scan(str,1,'.'); file htmlout; length lineout $100; lineout= 'put ''