title: Reading the file folder on UNIX using SAS
body: <p>I am trying to read the folder with zip files using Pipe Command. But I get error saying ls command not recognized. There are actually 2 zip files(ABC_*.zip) in the folder /PROD/<br>
  Can anybody help me in this?</p>
  
  <pre><code>%let extl_dir=/PROD/ ; 
  
  filename zl pipe "ls &amp;extl_dir.ABC_*.zip";
  
  data ziplist_a;
      infile zl  end=last;
      length path $200 zipnm $50 filedt $15;
      input path $;
      zipnm=scan(path,-1,"/");
      filedt=scan(scan(path,-1,"_"),1,".");
      call symput('zip'||left(_n_), zipnm);
      call symput('path'||left(_n_), path);
      call symput('filedt'||left(_n_),filedt);
      if last then call symput('num_zip',_n_); 
      *call symput('flenm',filenm); 
  run; 
  </code></pre>