/* These input files can be found on the SEER Web site */ /* http://seer.cancer.gov/popdata */ /* The All States Combined file for White, Black, and Other */ /* is used for input */ filename in 'us.1969_2002.19ages.txt'; /* All files read into SEER*Prep must end in .txd */ /* We'll keep all Maryland records for 1998-2002 */ filename out 'yr1998_2002.pops.md.txd'; data _null_; infile in; file out; length state_a $ 2; input @ 1 year 4. @ 5 state_a $char2. @ 7 state_f 2. @ 9 county 3. @ 12 registry 2. @ 14 race 1. @ 15 origin 1. @ 16 sex 1. @ 17 age 2. @ 19 pop 8. ; if 1998<=year<=2002; /* keep only 1998-2002 records */ if state_f=24; /* keep only Maryland records */ /* The format of the population files required by SEER*Prep */ /* is the same as the files distributed from */ /* http://seer.cancer.gov/popdata */ put @ 1 year z4. @ 5 state_a $char2. @ 7 state_f z2. @ 9 county z3. @ 12 registry z2. @ 14 race 1. @ 15 origin 1. @ 16 sex 1. @ 17 age z2. @ 19 pop z8. ; run;