Type : CREATION_INTERNE
The script does not ingest external data for processing. It uses a 'null' DATA STEP for internal operations such as resolving a SAS libref path (`pathname`) and executing system commands (`call system`, `x`).
| 1 | %macro chmod(path=inprd,local=) ; |
| 2 | %put NOTE-USED: {}; |
| 3 | %IF &local= %THEN |
| 4 | %DO ; |
| 5 | %syslput path=&path; |
| 6 | rsubmit ; |
| 7 | %END ; |
| 1 | * Fix authorities so group has full access to datasets & indexes created ; |
| 2 | * use a datastep to force pathname to resolve on UNIX, rather than windows ; |
| 3 | DATA _null_ ; |
| 4 | LENGTH path $ 256 ; |
| 5 | path=pathname("&path") ; |
| 6 | put path= ; |
| 7 | call system('cd '||trim(path)) ; |
| 8 | RUN ; |
| 9 | x "chmod g=rxw *" ; |
| 10 | * go up a level to fix the directory ; |
| 11 | x "cd .." ; |
| 12 | x "chmod g=rxw *" ; |
| 1 | %IF &local= %THEN |
| 2 | endrsubmit ; ; |
| 3 | %mend chmod ; |