The SAS Output Delivery System and reporting techniques

Confusing Lack of an Error

Reply
N/A
Posts: 0

Confusing Lack of an Error

I'm a slightly confused beg/int SAS programmer: I ran the code below--as you can see, it's missing a semicolon after the 'do'. However, I got no error message in my log, the code ran perfectly, and the output is exactly the same as when I ran the program with the semicolon interted. Can anyone enlighten me as to why my mistake didn't hose everything up?

...
else if first_sell < first_buy then do
type = 'seller';
first_date = first_sell_date;
first_class = trim(left(year(first_sell_date)))||'/'||trim(left(month(first_sell_date)));
end;
...
SAS Employee
Posts: 174

Re: Confusing Lack of an Error

Posted in reply to deleted_user
This question is perhaps best answered by Technical Support. You can submit it online at http://support.sas.com/ctx/supportform/index.jsp .

-- David Kelley, SAS
Ask a Question
Discussion stats
  • 1 reply
  • 110 views
  • 0 likes
  • 2 in conversation