I am trying to define a column using the following:
CASE T3."COMPONENT_PRODUCT_ID"
WHEN NULL THEN T3."ICIS_PRODUCT_ID"
ELSE T3."COMPONENT_PRODUCT_ID"
END AS PSEUDO_PRID,
SAS does not like this. Is there another way to define a column called PSEUDO_PRID
code like when the field Component_Product_Id is null then give me ICIS_Product_Id else give me Component_Product_Id.
Hi:
This is not an ODS or Base Reporting (PROC PRINT, REPORT, TABULATE) question.
The SAS documentation for PROC SQL does have examples of using a CASE clause. Alternately, you might consider contacting Tech Support for help. To send a question to Tech Support, go to http://support.sas.com/ and in the left-hand navigation pane, click on the link entitled "Submit a Problem".