Thanks all for your very helpful responses; they helped me frame the problem correctly in my mind. Is it then fair to say that from the variables Var1 - Var5 in my dataset, if I only wanted to make changes to 3 of them, say Var1, Var3, and Var5 there is no way to do so other than putting Var1, Var3, and Var 5 into an array? In other words, is anyone aware of a way to modify my syntax below in order to take my Have dataset and get my Want dataset below? I have references to my syntax below in Base SAS textbooks, however, I have not come across any explicit enough examples to implement those references; everyone seems to default to using an array. As always, all thoughts are welcome. My syntax: data want; set have; do i = Var1, Var3, Var5; i = i + 3000; end; run; Have Dataset: Obs CustomerID Var1 Var2 Var3 Var4 Var5 1 424535 5013 6784 5673 . 3462 2 576775 . 4328 3231 4563 2445 3 645678 . . 4356 . 6534 4 768395 6476 8732 6428 3542 2314 Want Dataset (Var1, Var3, Var5 have all be incremented by 3000): Obs CustomerID Var1 Var2 Var3 Var4 Var5 1 424535 8013 6784 8673 . 6462 2 576775 3000 4328 6231 4563 5445 3 645678 3000 . 7356 . 9534 4 768395 9476 8732 9428 3542 5314
... View more