%let path=%str(p:\mcdc\acs2008); %let pgm=upload_edit_usmcdcprofiles; filename pgm "&path\&pgm..sas"; x cd &path; *---Being rerun 9-29-09 after the economic tables data updated----; libname acs2008 "&path"; filename rlink clear; filename rlink 'c:\tcpunix2.scr'; signon mcdc; rsubmit; libname temp '/pub/data/temp'; libname aix2008 '/pub/data/acs2008'; libname acs2007 '/pub/data/acs2007'; *<---previous years data---; filename pgmaix '/pub/data/acs2008/Tools/upload_edit_usmcdcprofiles.sas'; proc upload data=acs2008.usmcdcprofiles_2008 out=temp.usmcdcprofiles status=no; run; proc upload infile=pgm outfile=pgmaix status=no; run; *<---upload this program file---; *data temp.usmcdcprofiles; *--get rid of formats and informat specs on all numeric vars--; * set temp.usmcdcprofiles; * format _numeric_ ; * informat _numeric_ ; * informat _character_ ; * run; data aix2008.usmcdcprofiles(label='MCDC profile extract for all US areas with 65,000+ population based on 2008 surveys'); if 0 then set acs2007.usmcdcprofiles(drop=datecreated); *--this sets up the program data vector, establishing the variable order with lengths, labels and formats----; set temp.usmcdcprofiles; *---this puts the data into the pdv slots.----; *** DateCreated=today(); Years='2008'; period='1yr'; Geocomp_name=put(geocomp,$geocomp.); if sumlev='795' then do; length PUMA $5; puma=substr(geoid,10,5); if state='29' then Areaname=put(puma,$mopuma.); end; if sumlev='160' then placefp=substr(geoid,10,5); run; proc print data=aix2008.usmcdcprofiles(keep=_character_ totpop obs=100); title2 "First 100 Obs on acs2008.usmcdcprofile"; run; endrsubmit; %put ****all done*****;