DATA Step, Macro, Functions and more

An unexpected semicolon occurred in the %DO statement.

Accepted Solution Solved
Reply
Contributor
Posts: 32
Accepted Solution

An unexpected semicolon occurred in the %DO statement.

Does anyone know what this error message means? 

An unexpected semicolon occurred in the %DO statement.


Accepted Solutions
Solution
‎07-10-2015 03:29 PM
Super User
Super User
Posts: 7,077

Re: An unexpected semicolon occurred in the %DO statement.

One way to get that message is to write an invalid form of the %DO statement.

%macro junk;

%do i ;

%end;

%mend junk;

View solution in original post


All Replies
Solution
‎07-10-2015 03:29 PM
Super User
Super User
Posts: 7,077

Re: An unexpected semicolon occurred in the %DO statement.

One way to get that message is to write an invalid form of the %DO statement.

%macro junk;

%do i ;

%end;

%mend junk;

Contributor
Posts: 43

Re: An unexpected semicolon occurred in the %DO statement.

Hi Kodmfl,

Can you share the code you are using.

Thanks

Contributor
Posts: 32

Re: An unexpected semicolon occurred in the %DO statement.

Posted in reply to sasjourney

journey

Thanks anyway ...Tom helped me out I think for now. 'preciate it. Did something bonehead.

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 702 views
  • 0 likes
  • 3 in conversation