title: SAS and Curl: 'env' in url causes error
body: <p>I'm trying to use CURL with SAS 9.3.  I got it working for normal webpages.  However, when I try to use it with a URL with 'env', I get the following error message: 'env' is not recognized as an internal or external command, operable program or batch file.  Is there some CURL function that I can use in a filename statement, so CURL will recognize 'env' as part of the URL?  Also, I tried proc http, but couldn't get it to work with a proxy.  This is why I started using CURL.  Thanks very much for any suggestions.</p>
  
  <p>SAS code:</p>
  
  <pre><code>%let url=%NRSTR(https://query.yahooapis.com/v1/public/yql?q=SELECT%20*%20FROM%20yahoo.finance.option_contract%20WHERE%20symbol%3D'YHOO'&amp;diagnostics=true&amp;env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys);
  
  filename curl pipe "curl -K &amp;url 2&gt;&amp;1";
  
  data _null_;
    infile curl lrecl=32767;
    input;
    put _infile_;
  run;
  </code></pre>