table caslibInfo

Corporate Data Source Compliance Audit

Scénario de test & Cas d'usage

Business Context

The Data Governance Office needs to perform a quarterly audit of all active data libraries to ensure they point to secure, authorized storage paths. The auditor needs to examine specific details of departmental libraries (Marketing, Finance) to validate permissions and storage locations.
About the Set : table

Loading, saving, and managing in-memory tables.

Discover all actions of table
Data Preparation

Setup of departmental caslibs for Marketing and Finance pointing to temporary paths for simulation.

Copied!
1cas mysess;
2 
3PROC CAS;
4caslib Marketing path='/tmp/marketing_data' dataSource={srcType='PATH'} libref=mktd;
5caslib Finance path='/tmp/finance_data' dataSource={srcType='PATH'} libref=find;
6 
7RUN;
8 
9QUIT;
10 

Étapes de réalisation

1
Retrieve the baseline list of all visible caslibs to identify the scope of the audit.
Copied!
1PROC CAS; TABLE.caslibInfo RESULT=r; PRINT r; RUN;
2
Perform a deep-dive inspection of the 'Finance' caslib using verbose mode to check extended attributes like path permissions and scope.
Copied!
1 
2PROC CAS;
3TABLE.caslibInfo / caslib='Finance' verbose=TRUE;
4 
5RUN;
6 
3
Set 'Marketing' as the active caslib and verify its status using the 'active' parameter flag.
Copied!
1 
2PROC CAS;
3caslib Marketing;
4TABLE.caslibInfo / active=TRUE;
5 
6RUN;
7 

Expected Result


The audit successfully lists all libraries, provides detailed attribute metadata for the Finance library (confirming path security), and validates the active status of the Marketing library.