automatic macro

Reply
Contributor
Posts: 68

automatic macro

%macro stats(dsn,class,vars);

title 'Listing produced on &sysday, &sysdate at &systime';  

title2 "Statistics from data set &dsn";

proc means data=&dsn n mean min max maxdec=1;

class &class;

var &vars;

run;

%mend stats;

%STATS(learn.bicycles, Country, Units TotalSales)  Hi guys, I'm just wondering why the first title couldn't be resolved and show the current day,date and time?

THANK YOU!

Super User
Posts: 19,157

Re: automatic macro

Macro variables resolve in double quotes not single quotes.

Ask a Question
Discussion stats
  • 1 reply
  • 160 views
  • 0 likes
  • 2 in conversation