Hi, All,
I have a macro variable (%let id = T1234;) and I would like the value of a variable to be equal to this macro variable. It should like like so:
col1 col2
1 T1234
2 T1234
...
I've tried the following: proc sql; select col1, "&id." as col2 from some_table.
And this doesn't work. I end up with:
col1 col2
1 &id.
2 &id.
I've also tried using a data step (col2 = '"&id.";). This doesn't work either - only the first character will print (I assume because the second character may be numeric?). The results look something like this:
col1 col2
1 T
2 T
Any advice or help would be greatly appreciated.
Thanks,
c