There is no common table expression in PROC SQL, instead use subquery. The only difference is CTE's can be recursive and subqueries are not. CTE's can be used over and over as a different table. The advantage of a Subquery is that it can be used as column and only subqueries can be used in the WHERE clause!.
... View more