![]() |
Macros for SAS Application Developers
https://github.com/sasjs/core |
Mechanism for locking tables to prevent parallel modifications. More...
Go to the source code of this file.
Uses a control table to enable ANY table to be locked for updates (not just SAS datasets). Only useful if every update uses the macro! Used heavily within Data Controller for SAS.
[in] | action | The action to be performed. Valid values:
|
[in] | lib= | (WORK) The libref of the table to lock. Should already be assigned. |
[in] | ds= | The dataset to lock |
[in] | ref= | A meaningful reference to enable the lock to be traced. Max length is 200 characters. |
[out] | ctl_ds= | (0) The control table which controls the actual locking. Should already be assigned and available. The definition is available by running the mddl_dc_locktable.sas macro. |
[in] | loops= | (25) Number of times to check for a lock. |
[in] | loop_secs= | (1) Seconds to wait between each lock attempt |
Definition in file mp_lockanytable.sas.