Can I suggest an example of what you mean, what comparison are you doing? I thought this was about order of variables. How will you know what variables are to be changed, do they all have a prefix?
Also, why do you have "lots of variables", which immediately throws up questions to my mind, as it is far easier from a programming point of view to be talking about lots of observations rather than variables. (Test data as a datastep and required outpu is also useful - note that the data you work with does not need to look like any output report or transfer file).
... View more