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;

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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