Converting Alphanumeric Offense Codes to Numeric Values

____________________________________________________________

This RECODE changes the alphanumeric variable type for arresting offense into a numeric type and assigns the new values to the new variable called arroff. The new values assigned coincide with the FBI hierarchical offense structure. In this RECODE, the lower the value the greater the seriousness of the offense. This same block of code can be used to convert the offense codes on the offense segment (OFF_CODE) and the victim segment (V_OFF1 through V_OFF10) by substituting the correct variable names.
____________________________________________________________

recode arr_off
('200' = 200) ('13A' = 130) ('13B' = 171) ('13C' = 172)
('510' = 510) ('220' = 140) ('250' = 250) ('290' = 290)
('35A' = 350) ('35B' = 351) ('270' = 270) ('210' = 210)
('26A' = 260) ('26B' = 261) ('26C' = 262) ('26D' = 263)
('26E' = 264) ('39A' = 390) ('39B' = 391) ('39C' = 392)
('39D' = 393) ('09A' = 90) ('09B' = 198) ('09C' = 199)
('100' = 190) ('23A' = 160) ('23B' = 161) ('23C' = 162)
('23D' = 163) ('23E' = 164) ('23F' = 165) ('23G' = 166)
('23H' = 167) ('240' = 150) ('370' = 370) ('40A' = 400)
('40B' = 401) ('120' = 120) ('11A' = 110) ('11B' = 180)
('11C' = 181) ('11D' = 182) ('36A' = 360) ('36B' = 361)
('280' = 280) ('520' = 520)into arroff.