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.
SAS code:
%let url=%NRSTR(https://query.yahooapis.com/v1/public/yql?q=SELECT%20*%20FROM%20yahoo.finance.option_contract%20WHERE%20symbol%3D'YHOO'&diagnostics=true&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys);
filename curl pipe "curl -K &url 2>&1";
data _null_;
infile curl lrecl=32767;
input;
put _infile_;
run;