08-21-2015 02:33 PM
I have datasets using number designations as names.. e.g. Dataset 1 = 01_19, Dataset 2 = 100_199 etc.
When doing undergoing a proc sort / merge the code does not like numeric dataset names. I tried enclosing in single quotes with "n" at the end but to no avail.
Here is some sample code:
PROC SORT DATA='01_19'n; BY ACCTNO;RUN;
PROC SORT DATA='20_39'n; BY ACCTNO;RUN;
PROC SORT DATA='40_59'n; BY ACCTNO;RUN;
PROC SORT DATA='60_79'n; BY ACCTNO;RUN;
Any input on how to work with dataset names using numeric aliases would be most helpful.
Need further help from the community? Please ask a new question.