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

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 833 views
  • 0 likes
  • 2 in conversation