Hello everybody!
I have two tables:
1st table name is substFormat: with two num fields: Policy and new1
2nd table name is Full: with Policy field
I need to replace Policy field in FULL table with NEW1 if substFormat.policy=Full.policy
I tried to do it in Proc SQL UPDATE STATEMENT
proc sql;
update table Full
set k.policy = l.new1
from full k, substFormat l
where k.policy=l.policy
and l.policy <>.;
quit;
BUT I failed as log mentioned invalid syntax
-
79
76
ERROR 79-322: Expecting a SET.
ERROR 76-322: Syntax error, statement will be ignored.
What I am doing wrong?
Thank you for your time and consideration
Rina
I have two tables:
1st table name is substFormat: with two num fields: Policy and new1
2nd table name is Full: with Policy field
I need to replace Policy field in FULL table with NEW1 if substFormat.policy=Full.policy
I tried to do it in Proc SQL UPDATE STATEMENT
proc sql;
update table Full
set k.policy = l.new1
from full k, substFormat l
where k.policy=l.policy
and l.policy <>.;
quit;
BUT I failed as log mentioned invalid syntax
-
79
76
ERROR 79-322: Expecting a SET.
ERROR 76-322: Syntax error, statement will be ignored.
What I am doing wrong?
Thank you for your time and consideration
Rina