Hi all,
Here is some behaviour I didn't expect:
proc sql ;
create table junk as
select * from NewPremises(firstobs = 5 obs=5);
update NewPremises(firstobs = 5 obs=5) set PremisesId = 99;
quit;
----------------------------------
9185 proc sql ;
9186 create table junk as
9187 select * from NewPremises(firstobs = 5 obs=5);
NOTE: Table WORK.JUNK created, with 1 rows and 8 columns.
9188 update NewPremises(firstobs = 5 obs=5) set PremisesId = 99;
NOTE: 52798 rows were updated in WORK.NEWPREMISES.
9189 quit;
-------------------------------------------
Why does the Update statement ignore the FIRSTOBS and OBS statment and update the entire dataset, but the select statement works as I expected?
Also, does anybody know of a way to update a row based on it's row number?
I appreciate any insight you may have.
Curtis