DATA Step, Macro, Functions and more

Keyword Colours in Macros

Reply
N/A
Posts: 1

Keyword Colours in Macros


Hi All,

Does anybody know if there is a statement or option to keep keywords colours whithin a macro?

Regards

Paolo

Super User
Super User
Posts: 7,407

Re: Keyword Colours in Macros

I don't think so.  The reason being is that macro code isn't actually code until it has been parsed by the pre-processor.  Simplest way is to write your code, then copy over to a macro and change for parameters.

New User
Posts: 1

Re: Keyword Colours in Macros

I recently inherited some code when I changed jobs.

There was a large macro as the main process. It had a rather annoying %macro _; %mend _; at the end of the %macro line.

It wasn't until I deleted them that I realised that all of the code within the macro had the keywords colour coded.

Reinstating them made the colours return!

 

e.g

%macro stuff(); %macro _; %mend _;

data thing2;

set thing1;

run;

%mend;

 

%macro stuff();

data thing2;

set thing1;

run;

%mend;

 

Does this help?

Ask a Question
Discussion stats
  • 2 replies
  • 187 views
  • 0 likes
  • 3 in conversation