Syntax looks ok, but your parentheses are in the wrong place and you are missing the END keyword.
case when (x=1) then '01jul2009'd end as DATE1
Ready to join fellow brilliant minds for the SAS Hackathon?
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.