i recently started programming in SAS and i have a couple of questions.
assuming that i have a couple of variables with a number of observations, how do i write a loop so that a procedure is executed on every variable?
for example. i have variables named Y1, Y, .. ,Yn. how do i write a loop so that an if statement is performed for all the variables. so i don't have to type:
if Y1 = x then DELETE;
if Y2 = x then DELETE;
if Yn = x then DELETE;
and my second question is if it's possible to print variables from more than one data set using proc print? cus if i have two DATA = the log tells me