data gss; infile 'x:\gss3.csv' firstobs=2 delimiter=',' dsd; input year childs age sex $ partyid $ happy $ coneduc $ jobsecok $; run; data gss; set gss; where happy <> "Don't kn" and jobsecok <> "Dont kno" and jobsecok <> "No answe" and jobsecok <> "Not appl"; run; proc freq data=gss; table jobsecok*happy / measures chisq; run;