Hello, I have a program that inlcudes a loop that reads different data sets and then do different operations depening on the data set. for example, say i have data A (with variables ID, A1 and A2) and data B (with variables ID, B1 and B2). and the ID variable has either A or B, depending on which data set it is. I have a loop in which i read the data set and then does (this is a simplification of the code, just to illustrate): if ID='A' and A1=A2 then C=3; if ID='B' and B1=B2 then C=2; The problem is that when data A is read, SAS creats variables B1 and B2, and when data B is read, it creates varaible A1 and A2. How can I avoid that? Thanks!
... View more