Hi,
Here is the first part of a macro I’m trying to create. However I get an error trying to run the &a._&b part i.e. create a table in WORK. Can someone let me know what is going on? What am I missing? I’ve never created SAS macros before so this all new to me.
Thank you
%macro xyz(a,b);
PROC SQL;
CREATE TABLE &a._&b AS
SELECT DISTINCT t1.&b,
Apologies. I've solved this.
Perhaps post the solution, but please mark it solved as well 🙂
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.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.