BookmarkSubscribeRSS Feed
deleted_user
Not applicable
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;
...
1 REPLY 1
David_SAS
SAS Employee
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

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.

Explore Now →
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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1078 views
  • 0 likes
  • 2 in conversation