Hi,
I am trying to run the following update in Enterprise Guide and I am getting the following error "ERROR 73-322: Expecting an =."
Can anyone see where I'm going wrong?
proc sql;
update DEV_MART.CHURN_MART_WITH_CONTROL_GROUP A
set A.AVONDHU_GROUP =
(select b.AVONDHU_GROUP
from PD_DATA.OUTBOUND_CLASSIFICATION B
where B.MAIN_MEM_NO=A.MAIN_MEM_NO
AND B.RENEWAL_DATE = A.RENEW_DT
AND B.RUN_DATE = A.SCORE_DT)
where exists (
select 1
from PD_DATA.OUTBOUND_CLASSIFICATION B
where B.MAIN_MEM_NO = A.MAIN_MEM_NO
AND B.RENEWAL_DATE = A.RENEW_DT
AND B.RUN_DATE = A.SCORE_DT);
quit;
Thanks.
Prenderj,
Try the below. theas
proc sql;
update DEV_MART.CHURN_MART_WITH_CONTROL_GROUP as A
set A.AVONDHU_GROUP =
(select b.AVONDHU_GROUP
from PD_DATA.OUTBOUND_CLASSIFICATION B
where B.MAIN_MEM_NO=A.MAIN_MEM_NO
AND B.RENEWAL_DATE = A.RENEW_DT
AND B.RUN_DATE = A.SCORE_DT)
where exists (
select 1
from PD_DATA.OUTBOUND_CLASSIFICATION B
where B.MAIN_MEM_NO = A.MAIN_MEM_NO
AND B.RENEWAL_DATE = A.RENEW_DT
AND B.RUN_DATE = A.SCORE_DT);
quit;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
Check out this tutorial series to learn how to build your own steps in SAS Studio.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.