x cd /pub/data/acspums/Tools; %let pgm=usdata2003; filename pgm "&pgm..sas"; *****These attrib files were also saved to .sas files in the Tools directory. We need to edit those and places those attrib statements before a Set stmt so we modify the attributes as desired. We need to convert these to current (v9) datasets, indexed by state. *****; *---access the SAS datasets for the 2003 (survey year) ACS pums data for state of mo. ---; libname acspums v6 '/pub/data/acspums'; proc contents data=acspums._all_ out=pumsvars(keep=memname name type length varnum label format:) ; run; proc sort; by memname varnum; run; proc print data=pumsvars; by memname; id varnum name; run; run; proc freq data=acspums.psam_hus(keep=st); table st; format st $state.; run ; filename attrib catalog 'sasuser.profile.attribH.source'; %genattr(setin=acspums.psam_hus) run; filename attrib catalog 'sasuser.profile.attribP.source'; %genattr(setin=acspums.psam_pus)