/ Published in: SAS
This simple, straightforward method should work on multiple platforms (other methods involving OS specific commands and pipes are less flexible).
- filename parent "/lvl1/lvl2";
- data files_and_folders;
- length name $50;
- drop rc did i;
- if did > 0 then do;
- do i=1 to dnum(did);
- else put 'Could not open directory';
You need to login to post a comment.