I have 30 variables that were 0/1 questions. If the subject answered 0, the values for the subsequent 14 questions were missing. I need to change the missing values of these 14 fields to 0 when the source field is 0. All the subsequent 14 variables have the same suffix as the source field (and the suffixes start with 4 to 33). For example, for the first one: IF DaySmoke_Quest4 = 0 THEN DO; Cigarett_Amount4 = 0; NicGum_Amount4 = 0; NicLoz_Amount4 = 0; LitCigars_Amount4 = 0; Cigarillos_Amount4 = 0; NicPatch_Amount4 = 0; Hookahs_Amount4 = 0; Snuff_Amount4 = 0; Bidis_Amount4 = 0; Pipes_Amount4 = 0; Blunts_Amount4 = 0; FullCigars_Amount4 = 0; ECig_Amount4 = 0; HandCigs_Amount4 = 0; END;
... View more