* Match the Victim segment with the Offense segment GET FILE = ''Directory:\Path\victim segment.sav'. MATCH FILES /TABLE=* /FILE=''Directory:\Path\offense segment.sav'. /BY ori inc_num. SAVE OUTFILE = ''Directory:\Path\victim and offense segment.sav'. GET FILE = ''Directory:\Path\victim and offense segment.sav'. *Select offenses with an injury USE ALL. COMPUTE filter_$=(v_inj1 ~= 'N' & v_inj1 ~= ' '). VARIABLE LABEL filter_$ "v_inj1 ~= '1' & v_inj1 ~= ' ' (FILTER)". VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'. FORMAT filter_$ (f1.0). FILTER BY filter_$. EXECUTE . *Create table of weapons and injuries CROSSTABS /TABLES=weapon1 BY v_inj1 /FORMAT= AVALUE TABLES /CELLS= COUNT .