Hi, I need to reverse every even number item in a questionnaire. How could I figure this out with an array statement? Let's assume there are total 30 items but just even numbered items need to be reversed. DATA sdqreversed; set sdq; T1SDQ2=9-T1SDQ2; T1SDQ4=9-T1SDQ4; T1SDQ6=9-T1SDQ6; T1SDQ8=9-T1SDQ8; T1SDQ10=9-T1SDQ10; T1SDQ12=9-T1SDQ12; T1SDQ14=9-T1SDQ14; T1SDQ16=9-T1SDQ16; T1SDQ18=9-T1SDQ18; T1SDQ20=9-T1SDQ20; T1SDQ22=9-T1SDQ22; T1SDQ24=9-T1SDQ24; T1SDQ26=9-T1SDQ26; T1SDQ28=9-T1SDQ28; T1SDQ29=9-T1SDQ29; T1SDQ30=9-T1SDQ30; run;
... View more