UPDATE_MODE_WAIT= Data Set Option

Specifies during SAS/ACCESS Update operations whether the DBMS waits to acquire a lock or fails your request when a different user has locked the DBMS resource.
Valid in: DATA and PROC steps (when accessing DBMS data using SAS/ACCESS software)
Default: LIBNAME setting
Data source: Teradata
See: UPDATE_MODE_WAIT= LIBNAME option. See also Locking in the Teradata Interface.

Syntax

UPDATE_MODE_WAIT=YES | NO

Syntax Description

YES
specifies that Teradata waits to acquire the lock, so SAS/ACCESS waits indefinitely until it can acquire the lock.
NO
specifies that Teradata fails the lock request if the specified DBMS resource is locked.

Details

If you specify UPDATE_MODE_WAIT=NO and if a different user holds a restrictive lock, then your SAS step fails and SAS/ACCESS continues the job by processing the next step. If you specify UPDATE_MODE_WAIT=YES, SAS/ACCESS waits indefinitely until it can acquire the lock.
A restrictive lock means that a different user is holding a lock that prevents you from obtaining your desired lock. Until the other user releases the restrictive lock, you cannot obtain your lock. For example, another user's table-level WRITE lock prevents you from obtaining a READ lock on the table.
Use SAS/ACCESS locking options only when Teradata standard locking is undesirable.
For more information, see the locking topic in the Teradata section.