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: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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