Help using Base SAS procedures

Getting error when i define macro variable

Reply
Super Contributor
Posts: 259

Getting error when i define macro variable

I get an error when I put in the following code:

%let year1 = %sysfunc(year("31DEC2012"D));

Trusted Advisor
Posts: 1,228

Re: Getting error when i define macro variable

What is the error?

Super User
Super User
Posts: 7,942

Re: Getting error when i define macro variable

Indeed:

%let year1 = %sysfunc(year("31DEC2012"D));

%put &year1.;

Seems to work fine.

Ask a Question
Discussion stats
  • 2 replies
  • 158 views
  • 6 likes
  • 3 in conversation