title: Can infile be used to import a sas log file in a sas program (execution to be done in batch mode ie PuTTY)?
body: <p>I need to import the errors in a sas log file to a sas dataset(when executed in batch mode i.e. in PuTTY). Is is possible? The code has been included:</p>
  
  <pre><code>data test;
      infile  "&amp;l_path/&amp;name..log" truncover;
      input error_and_warning  $2000.;
      if index(_infile_, 'ERROR:') = 1 then output;
      if index(_infile_, 'WARNING:') = 1 then output;
  run;
  </code></pre>