options yearcutoff = 1900; data brca; infile "E:\Epid759\brca.dat"; input idnum 1-4 stopmens 5 agestop1 6-7 numpreg1 8-9 agebirth 10-11 mamfreq4 12 @13 dob mmddyy8. educ 21-22 totincom 23 smoker 24 weight1 25-27; format dob mmddyy10.; if stopmens = 9 then stopmens=.; if agestop1 = 88 then agestop1=.; if agestop1 = 99 then agestop1=.; if numpreg1 = 88 then numpreg1 = .; if numpreg1 = 99 then numpreg1 = .; if agebirth = 88 then agebirth = .; if agebirth = 99 then agebirth = .; if mamfreq4 = 9 then mamfreq4 = .; if dob = "09SEP1999"D then dob=.; if educ = 99 then educ = .; if totincom = 9 then totincom = .; if weight1 = 999 then weight1 = .; run; proc means data=brca; run; proc freq data=brca; tables dob; run; libname sasdata2 "E:\epid759\sasdata2"; data sasdata2.brca; set brca; run;