BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.

Hello! I am trying to run a SAS macro and repeatedly get an error....

 

 

%LET list_categor = 

%LET list_continue = 

%M_AD(TABLE = , 

 

Basically the last line there - statement not valid or used out of proper order.

I have tried several times, selecting or unselecting the code and running it but the same error occurs.

I was hoping to find out if anyone has experienced similar trouble?

 

Thank you very much in anticipation. 

 

I

1 ACCEPTED SOLUTION

Accepted Solutions
Tom
Super User Tom
Super User

The first two statements need semi-colons to end the %LET statement.  The last one looks like a call to the macro named M_AD, but the parameter list is missing the right parenthesis.

View solution in original post

2 REPLIES 2
Tom
Super User Tom
Super User

The first two statements need semi-colons to end the %LET statement.  The last one looks like a call to the macro named M_AD, but the parameter list is missing the right parenthesis.

Dear Tom, thank you so much for the response. There seemed to be a problem which I still do not understand. We ran the macro again from scratch with all the codes and the error has gone. The outputs are working fine now. Yes, sorry I did not put all the code lines there as there were too many and just that one code was creating the error. However, kust now it resolved!

 

Thank you so much again!!

 

Kind regards

Sanam 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 434 views
  • 1 like
  • 2 in conversation