Is it possible to create an array of column variables within sql to perform an operation like the following (please excuse the syntax):
array(Col1,Col2,Col3);
update tempTable
for(i=1;i<3;i++){
set array[i] =
case missing(array[i])
then 0*1
else
array[i]*1
end
};
note: I am using a proc SQL step in SAS
Desired function: Perform the operation in the for loop above on multiple columns of a table, without writing a separate set statement for each column.