0

I love using the Select/When/Otherwise statement in the data step, but my code always needs debugged before it will run properly. I never can remember the exact syntax required and SAS doesn't have very good documentation for it. (I actually can't find any mention of it except in the SCL documentation). Sometime it's because I put a semicolon after the When statements or forget that I need a Do block. Is this feature officially unsupported? If not then why isn't it documented?

Michael Richardson
  • 4,213
  • 2
  • 31
  • 48

1 Answers1

2

Select/When/Otherwise documentaion

Jay Corbett
  • 28,091
  • 21
  • 57
  • 74
  • 2
    http://philihp.com/blog/2012/sas-switch-statement/ is a good explanation of how it works as well. – Joe Apr 17 '13 at 15:42
  • Obviously, I need to use better search terms. This page isn't in the search results for either "Select When" or "Select When Otherwise" on the SAS site. However, it's the first result when searching for "Select Statement". Thanks for your help. – Michael Richardson Apr 22 '13 at 13:12