Reminder: If you restarted your SAS session, you must recreate the MC1 library so you can access your practice files. In SAS Studio, open and submit the libname.sas program in the EMC1V2 folder. In Enterprise Guide, run the Autoexec process flow.
%macro customers(type); title "&type Customers"; proc sql number; select Name, Age_Group, Type from mc1.customers where Type contains "&type"; quit; title; %mend customers; %customers(Gold) %customers(High Activity)
What does the log say? Turn on the macro debugging options first by running this command
options mprint;
and then run the macro again. That should help you debug it. If you still can't figure it out, please copy and paste the log as text into the window that appears when you click on the </> icon. We need to see the entire log for the calls to the macro, not selected parts of the log.
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.
Ready to level-up your skills? Choose your own adventure.