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))";
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.