it would have been helpful to know what you have tried....
In what context do you want to use this macro variable?
Would it be in a where clause, logic test, assignment statement, E.G., WRS, ....?
Have you tried
pstqtr = "&valqtr" ;
or
pstqtr = "%sysfunc( inputn(&valqtr, yyq4))";
Catch up on SAS Innovate 2026
Dive into keynotes, announcements and breakthroughs on demand.