Hello, I need to create multiple conditions in a where statement in a dynamic way. I'll explain. Let's say we have: data want; set have; where first = "& vala" and second = "& valb" and third = "& valc"; run; Where & val # are values taken from a table with three columns (first, second, third) and a row. How can I do if I want to add one or more lines to the table and make the code in the following way: data want; set have; where (first = "& vala1" and second = "& valb1" and third = "& valc1" OR first = "& vala2" and second = "& valb2" and third = "& valc2" OR first = "& vala #" and second = "& valb #" and third = "& valc #") run; Thanks for the help. One more question: is there a SAS application which permits the user to modify a table based on some prompt you designed? Such as add rows, upodate a column or something like this?
... View more