Site hosted by Build your free website today!
SAS(r) Software Tips
Stopping Keyed Acces To Datasets Doing A PDV Dump
Whenever you use keyed access to a dataset, via the KEY= option of MODIFY, SET or MERGE, you get a PDV dump in the log if the key does not exist in the table you are accessing. 

However there are occasions when failure to find a record is NOT an error, and the PDV dump can be very annoying in those situations. It is simple to stop the PDV dump, just set _ERROR_ back to zero.

data test ;
key = 12121 ;
modify test key=key ;
if _iorc_ ne 0 then do ;/* add on new value */
output ;
_error_ = 0 ;
end ;
run ;

Contact Don Stanley