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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there an SQL UPDATE equivlant in SAS?

Status
Not open for further replies.

dkaplan

Programmer
Jan 29, 2001
98
0
0
US
Is it possible, using only SAS syntax, to update a single existing dataset?

The SQL equivalent would be:

UPDATE myTable
SET city = 'Paris'
WHERE id = 22

P.S.

I know this could be done using proc sql. I'm new to SAS and trying to learn the SAS syntax.
 
Thanks, TLP

I also found a way to do it in SAS syntax.

data myLib.originalDataset;
set myLib.originalDataset;
if id = 22 then city = 'Paris';
proc print data = myLib.originalDataset;
run;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top