13.07.2015 Views

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

398 UPDATE_MODE_WAIT= Data Set Option 4 Chapter 11UPDATE_MODE_WAIT= Data Set OptionSpecifies during <strong>SAS</strong>/<strong>ACCESS</strong> update operations whether the DBMS waits to acquire a lock or failsyour request when a different user has locked the DBMS resource.Default value: LIBNAME settingValid in: DATA and PROC steps (when accessing DBMS data using <strong>SAS</strong>/<strong>ACCESS</strong>software)DBMS support: TeradataSyntaxUPDATE_MODE_WAIT=YES | NOSyntax DescriptionYESspecifies that Teradata waits to acquire the lock, so <strong>SAS</strong>/<strong>ACCESS</strong> waits indefinitelyuntil it can acquire the lock.NOspecifies that Teradata fails the lock request if the specified DBMS resource is locked.DetailsIf you specify UPDATE_MODE_WAIT=NO and if a different user holds a restrictivelock, then your <strong>SAS</strong> step fails and <strong>SAS</strong>/<strong>ACCESS</strong> continues the job by processing thenext step. If you specify UPDATE_MODE_WAIT=YES, <strong>SAS</strong>/<strong>ACCESS</strong> waits indefinitelyuntil it can acquire the lock.A restrictive lock means that a different user is holding a lock that prevents you fromobtaining your desired lock. Until the other user releases the restrictive lock, youcannot obtain your lock. For example, another user’s table-level WRITE lock preventsyou from obtaining a READ lock on the table.Use <strong>SAS</strong>/<strong>ACCESS</strong> locking options only when Teradata standard locking isundesirable.For more in<strong>for</strong>mation, see the locking topic in the Teradata section.See AlsoTo assign this option to a group of relational DBMS tables or views, see the“UPDATE_MODE_WAIT= LIBNAME Option” on page 196.“Locking in the Teradata Interface” on page 832UPDATE_SQL= Data Set OptionDetermines which method to use to update and delete rows in a data source.Default value: LIBNAME setting

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!