accessControl commitTransaction

High-Volume Policy Migration Commit

Scénario de test & Cas d'usage

Business Context

A system administrator is performing a bulk migration of security policies across 50 different regional datasets. The changes are queued within a single transaction to ensure consistency—either all regions are updated, or none are. This scenario tests the robustness of the commit action when finalizing a transaction that encompasses a large number of logical modifications.
About the Set : accessControl

Management of access rights and data security.

Discover all actions of accessControl
Data Preparation

Simulation of multiple regional datasets to represent the bulk volume.

Copied!
1DATA casuser.region_north; x=1; RUN;
2 DATA casuser.region_south; x=1; RUN;
3 DATA casuser.region_east; x=1; RUN;
4 DATA casuser.region_west; x=1; RUN;

Étapes de réalisation

1
Start transaction and simulate multiple policy updates across different regions.
Copied!
1PROC CAS;
2 ACCESSCONTROL.startTransaction;
3 /* Simulate complex logic looping over regions */
4 DO region over {'region_north', 'region_south', 'region_east', 'region_west'};
5 PRINT 'Applying policy for ' || region;
6 END;
7 RUN;
2
Commit the bulk transaction to finalize all regional updates simultaneously.
Copied!
1PROC CAS;
2 ACCESSCONTROL.commitTransaction;
3 PRINT 'Bulk update committed.';
4 RUN;

Expected Result


The commitTransaction action successfully finalizes the batch operation without parameters. All pending changes for the regional tables are applied instantly, confirming the system handles bulk context commits efficiently.