DATA Step, Macro, Functions and more

Macro functions

Reply
Super Contributor
Posts: 1,041

Macro functions

HI Team,

could you explain why there has to be braces after date function!!

title "%sysfunc(date(),word date.) absence report"

Thanks

Super User
Posts: 19,877

Re: Macro functions

Posted in reply to robertrao

To differentiate it from a variable called date.

date() is a function that returns todays date, just a function that doesn't require any parameters, so nothing inside the brackets.

data test;

a=date();

date='01Jan2012'd;

run;

Super Contributor
Posts: 1,041

Re: Macro functions

Hi,

Thanks so very much for the example.

Regards

Super Contributor
Posts: 1,041

Re: Macro functions

Hi,

I could not mark this answer as Right Answer. Some technical error.

Regards

Ask a Question
Discussion stats
  • 3 replies
  • 201 views
  • 1 like
  • 2 in conversation