Hello Art,
thank you for your response but it is not working. I get an error message stating the variables cannot be found. The piece of code you shared assumes that the variables have the same prefix as the entry dataset but I have some special cases:
I have a dataset named substance, and it has the variables ID, DRUGDAT, SMOKDAT
I have a dataset named endurance, and it has the variables ID, ENDFDAT, ENDLDAT
Is it possible to pick from the list of variables available only those which end in DAT and rename those?
Thank you ,
KC.
... View more