felicity1212
Programmer
Hi. I am trying to update 4 columns in one table with information from 4 columns in another table. The error message i received says:
ERROR 79-322: Expecting a SET.
ERROR 76-322: Syntax error, statement will be ignored.
Here is my code, can someone help me please?
THank you!!
PROC SQL;
UPDATE
WORK.YODDAYODDA slmbrs
JOIN DWH.MEMBERS mbrs ON slmbrs.HFMemberID = mbrs.membno
JOIN DWH.PROVIDER prov ON mbrs.pcpno = prov.provno
SET
slmbrs.pcpid = mbrs.pcpno,
slmbrs.pcpparent = prov.parent,
slmbrs.pcpfirstname = prov.pfstnam,
slmbrs.pcplastname = prov.plstnam;
QUIT;
ERROR 79-322: Expecting a SET.
ERROR 76-322: Syntax error, statement will be ignored.
Here is my code, can someone help me please?
THank you!!
PROC SQL;
UPDATE
WORK.YODDAYODDA slmbrs
JOIN DWH.MEMBERS mbrs ON slmbrs.HFMemberID = mbrs.membno
JOIN DWH.PROVIDER prov ON mbrs.pcpno = prov.provno
SET
slmbrs.pcpid = mbrs.pcpno,
slmbrs.pcpparent = prov.parent,
slmbrs.pcpfirstname = prov.pfstnam,
slmbrs.pcplastname = prov.plstnam;
QUIT;