x cd /pub/data/acspums/Tools; %let pgm=application_immigrants; filename pgm "&pgm..sas"; *--User requests estimated immigrants by country of origin. We just do a freq on the question.--; libname acspums '/pub/data/acspums' access=readonly; proc format; VALUE $MIGSP /* edited 2-28-08 by jgb. Copied and pasted from the pdf version of the datadict */ ' '='N/A (person less than 1 year old/lived in same house 1 year ago) ' '001'-'071'='Elsewhere in US' '072'='Puerto Rico' '096'='US Island Areas, Not Specified' '109'='France' '110'='Germany' '111'='Northern Europe, Not Specified' '112'='Western Europe, Not Specified' '113'='Eastern Europe, Not Specified' '120'='Italy' '128'='Poland' '138'='United Kingdom, Excluding England' '139'='England' '163'='Russia' '164'='Ukraine' '168'='Other Europe, Not Specified' '207'='China, Hong Kong & Paracel Islands' '210'='India' '213'='Iraq' '214'='Israel' '215'='Japan' '217'='Korea' '233'='Philippines' '240'='Taiwan' '242'='Thailand' '247'='Vietnam' '251'='Eastern Asia, Not Specified' '252'='Western Asia, Not Specified' '253'='South Central Asia or Asia, Not Specified' '301'='Canada' '303'='Mexico' '312'='El Salvador' '313'='Guatemala' '314'='Honduras' '317'='Central America, Not Specified' '327'='Cuba' '329'='Domincan Republic' '333'='Jamaica' '344'='Caribbean and North America, Not Specified' '362'='Brazil' '364'='Colombia' '370'='Peru' '374'='South America, Not Specified' '462'='Africa' '463'='Eastern Africa, Not Specified' '464'='Northern Africa, Not Specified' '467'='Western Africa, Not Specified' '468'='Other Africa, Not Specified' '501'='Australia' '554'='Australian and New Zealand Subregions, Not Specified, Oceania and at Sea ' ; ods html file="&pgm..html"; proc freq data=acspums.moprecs123yr(keep=pwgtp migsp12 where=(migsp12 ge '072')); format migsp: $migsp.; weight pwgtp; table migsp12; run; ods html close;