This action requires elevated privileges.
Elevation code: proc cas; accessControl.assumeRole / adminRole="superuser"; run;
Flags a backup, previously initiated with the createBackup action, as complete. This action is a crucial step in the server's backup workflow, ensuring that the backup set is properly finalized and recognized by the system. This action is typically the final step in a backup transaction. Executing this action requires administrator privileges.
After initiating a backup with the `createBackup` action within a transaction, this action finalizes the backup process.
| 1 | PROC CAS; |
| 2 | ACCESSCONTROL.completeBackup; |
| 3 | RUN; |
This example demonstrates a complete administrative workflow. First, it assumes the Superuser role. Then, it starts a transaction, creates a backup of the access controls in the 'casuser' caslib, and finally, completes the backup before committing the transaction.
| 1 | PROC CAS; |
| 2 | ACCESSCONTROL.assumeRole / adminRole='superuser'; RUN; |
| 3 | ACCESSCONTROL.startTransaction RESULT=r_start; |
| 4 | PRINT r_start; |
| 5 | ACCESSCONTROL.createBackup / caslib='casuser' name='myAcsBackup' transactionId=r_start.transId; RUN; |
| 6 | ACCESSCONTROL.completeBackup; RUN; |
| 7 | ACCESSCONTROL.commitTransaction / transactionId=r_start.transId; RUN; |
| 8 | RUN; |