Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PROC SQL UPDATE QUERY

Status
Not open for further replies.

Pedro08

Technical User
Mar 31, 2008
1
AU
Hi,

I am attempting to use a PROC UPDATE query from SAS to update a table in an Access database.

Code as follows;

proc SQL;
UPDATE mydblib.tbl_MPSmisuse m
SET name=(select p.name from platesmatch1 p
WHERE m.id=p.id)
where name in (select name from platesmatch1);
quit;

The code works, however no rows are updated. Any ideas?

ta
 
I don't think that the SAS/ACCESS engine supports the Select statement in the SET statement (at least in MS Access). any time I have had to use SAS to update a MS Access table I used expicit statements (SET = 'XXXX'). I usually have SAS generate the SQL code and reinclude them in to the program using the %inc etc.

Klaz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top