Type : CREATION_INTERNE
Le script ne lit aucune table SAS. Il interagit directement avec le système d'exploitation pour générer un fichier texte de sortie.
| 1 | %macro find ; |
| 2 | |
| 3 | X 'find /home/xxx -name "*.xpt" -exec ls -i1 {} \; | sort > /home/xxx/zzz.txt'; |
| 4 | |
| 5 | %IF &sysrc ne 0 %THEN %DO ; |
| 6 | endsas; |
| 7 | %END ; |
| 8 | |
| 9 | %mend find ; |
| 10 | |
| 11 | %find ; |