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))";
The 2025 SAS Hackathon has begun!
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.