x cd /pub/data/georef/Tools; %let pgm=moregions_javamaps; filename pgm "&pgm..sas"; *--Use the javamap macro with data in the georef.mocogeos dataset to generate a map that allows user to display a map of Missouri showing regions as the response variables. jgb, May, 2005. ---*; libname user '/SAS_temp/user'; %libname(spatial); libname georef '/pub/data/georef' access=readonly; data mocogeos; set georef.mocogeos; esriid=county; format rpc $rpcname. umx $umxname. cbsa $cbsa. aaa $aaa. dot $modot. msa90 msa2k $metro. ded_region $dedrgn.; run; %macro xm; if not (county in ('29183','29189','29510','29113','29163','29173')) then goto cklast; %mend xm; goptions device=java; ods html path="/pub/data/georef/maps" body="counties.test.html" CODEBASE="https://mcdc.missouri.edu/sasweb/applets_v913"; title 'Mo County Map Generated with proc gmap'; proc gmap map=spatial.mocounties data=mocogeos; id county; choro rpc / discrete; format county $mocnty.; run; quit; ods html close; options mprint; %javamap(sumlev=050,geometry=spatial.mocounties_geometry, annods=spatial.mocounties_labels, data=mocogeos, idvar=county, fileout=%str(/pub/data/georef/maps/moregions.html), mapvars=, cmapvars=rpc ded_region cbsa aaa umx msa2k msa90 cbsatype, height=480,width=640, title=%str(Missouri County-based Regions), libref=georef,dset=mocogeos,view=0, maplvls=); run;