data framing; infile 't:\framing.txt' firstobs=2; input id sex age frw sbp sbp10 dbp chol cig chd yrschd death yrsdth cause; if chd=1 then chdny=.; if chd=0 then chdny=0; if chd>1 then chdny=1; run; proc freq data=framing; tables sex*chdny/chisq relrisk; run;