x cd /pub/data/pums2000/Tools; %let pgm=xtemp1; filename pgm "&pgm..sas"; /* ------------------------------------------------------------------------ Program: xtemp1 Description: Temporary extraction for user gfernand@indiana.edu, 9/2004. Selects national subset of Cuban born persons who cames to US after 1960. ------------------------------------------------------------------------ */ libname pums2000 "/pub/data/pums2000"; data pums2000.xtemp1; set pums2000.us5(keep=pob5 yr2us relate: sex: black marstat: educ: engabil: citizen: physcl: menta: inctot earns hweight pweight where=(pob5='327' and yr2us>='1960') ); run; options ls=200 ps=120; title 'Sample Obs from pums2000.xtemp1'; title2 'This Dataset Will be Deleted after 2 Weeks'; proc contents data=pums2000.xtemp1; run; proc print data=pums2000.xtemp1(obs=25); run;