While running the code mentioned below, I'm getting the error "ERROR 22-322: Expecting a name." and the affected code is 'END AS "Z"'. I'm not sure where I'm going wrong with this.
proc sql;
SELECT CASE
WHEN REGION IS NULL THEN ZONE
ELSE REGION
END AS "Z",