A macro variable is already part of SAS. How does the data initially arrive in your SAS environment?
And if the macro variable is filled from data out of a dataset, you can use the same step to create the code (statements are not limited in length), or use that extract in joins/hashes.
... View more