?>Array ( [id] => 61 )
Scénario de test & Cas d'usage
Initial setup of the primary marketing caslib. This ensures a valid target location exists before attempting to add a subdirectory. The path '/cas/data/mktg' is assumed to exist on the CAS server.
| 1 | PROC CAS; |
| 2 | caslib mktgData path='/cas/data/mktg' dataSource={srcType='path'} description='Main caslib for marketing analytics'; |
| 3 | RUN; |
| 1 | PROC CAS; |
| 2 | TABLE.addCaslibSubdir / |
| 3 | caslib='mktgData', |
| 4 | path='Winter_Promo_2025', |
| 5 | permission='GROUPWRITEPUBLICREAD'; |
| 6 | RUN; |
| 1 | PROC CAS; |
| 2 | TABLE.addCaslibSubdir / |
| 3 | caslib='mktgData', |
| 4 | path='Winter_Promo_2025/results'; |
| 5 | RUN; |
| 1 | PROC CAS; |
| 2 | TABLE.fileInfo / caslib='mktgData' path='Winter_Promo_2025/'; |
| 3 | RUN; |
The action successfully creates the 'Winter_Promo_2025' directory and its nested 'results' subdirectory inside the '/cas/data/mktg' path. The `fileInfo` action output will list the 'results' directory, and the 'Winter_Promo_2025' directory itself will have file system permissions equivalent to 775 (rwxrwxr-x), confirming the 'GROUPWRITEPUBLICREAD' setting was applied correctly.