DATA Step, Macro, Functions and more


Posts: 50



Identify words in a list supplied as macro parameter.

Start with the first word and continue as long as more words are found.

if no further word is found,display a message .*/

what should be the code ?

Super Contributor
Posts: 271

Re: macros

[ Edited ]

It seems you are trying to solve some homework on this community


Reeza, your views ?

Super User
Posts: 23,773

Re: macros

@RahulG It's perfectly allowed. It's considerate to take the time to ask a decent question however rather than just copy and paste a badly worded question. There's also the question of actually learning something. If an effort is shown to answer the question, ie here's what I've tried and what's not working that's even better. Most of the time someone will answer anyways. 


After a few questions like this I won't however, but that's my personal choice. I don't mind helping people but there's a limit. 


This is all my opinion of course, SAS manages the forum. 

Valued Guide
Posts: 580

Betreff: macros

[ Edited ]

Some keywords to check:

  • %sysfunc
  • %scan
  • countw
  • %do
  • %if
  • %let
  • %put
  • %macro
  • %mend




Ask a Question
Discussion stats
  • 3 replies
  • 4 in conversation