02-24-2014 02:39 PM
G'day. Appreciate any help you can give!
I'm trying to subset a dataset by county (i.e, create one table with just observations from Humboldt. Then, create another table with just observations from Fresno).Then export each county-specific dataset to a MS Access Database using a Macro.
I've not gotten very far.
DATA Elig13<want countyname here>;
if coname=<countyname here>;
02-25-2014 10:31 AM
DATA Elig13&county ;
if upcase(coname)= upcase("&county"); /* using upcase so you don't have to worry about either mixed case in the data set for the variable or making the parameter county case match the value in the dataset*/
WARNING: If you have any county names with spaces in them then some additional code will be needed to make a valid data set name.