BookmarkSubscribeRSS Feed
edasdfasdfasdfa
Quartz | Level 8

na

4 REPLIES 4
PaigeMiller
Diamond | Level 26

What does the error say? Show us the SASLOG (not just the errors, but the log for the entire PROC that has the error). Paste the log into the window that appears when you click on the {i} icon.

--
Paige Miller
PaigeMiller
Diamond | Level 26

Please paste the log into the window that appears when you click on the {i} icon.

--
Paige Miller
hashman
Ammonite | Level 13

@edasdfasdfasdfa:

  1. SQL doesn't understand the => operator, hence the syntax error.  Use either >= or the mnemonic GE instead, and it will go away. 
  2. Your outer CASE clause is not closed with ELSE. Though It's not a syntax error, you'll get a missing value as a result if no WHEN condition in that outer clause is true. SAS will warn you about it in the log, so pay attention or else your output data may be wrong.

Kind regards

Paul D. 

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
  • 4 replies
  • 557 views
  • 0 likes
  • 3 in conversation