BookmarkSubscribeRSS Feed
prenderj
Calcite | Level 5

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.

1 REPLY 1
anoopmohandas7
Quartz | Level 8

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;

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Creating Custom Steps in SAS Studio

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1197 views
  • 0 likes
  • 2 in conversation