x cd /pub/data/georef/Tools; %let pgm=mogeo_mapsheets; filename pgm "&pgm..sas"; /* taken from mogeo_mapsheets.sas on 03/26/2010 so I can create view (bce) without having to worry about messing up other datasets etc probably can be deleted in the future since mogeo_mapsheets.sas contains the same code */ libname user '/SAS_temp/userb'; libname georef '/pub/data/georef'; libname plmaps '/pub/plmaps'; libname sf12000 '/pub/data/census_2000/sf12000' access=readonly; *-------------Create the view that will go from the geocode to the URL for the pb map-----------------*; data georef.mogeos_with_maplinks(label="Links sf1.mogeos to pb map URLs")/view=georef.mogeos_with_maplinks; length URL $100; merge '/pub/data/georef/mogeomaplinks'(in=inlinks) '/pub/data/sf12000/mogeos' (in=ingeos) ; by geo_id; if inlinks; _mapid=map_id; set '/pub/plmaps/mocornerpts'(keep=basepath path filename) point=_mapid; URL=basepath||trim(path)||trim(filename)||'#pagemode=none'; label URL='URL of pdf map file at MSDIS'; drop basepath path ; run;