I wrote a SAS macro kind of like this...
%macro (myname=,myurl=);
filename myfile URL "&myurl";
data &myname;
infile myfile dlm=',';
input field1 field2;
run;
%mend;
It works once, but Whenever I run it again, I get log messages saying:
ERROR: At least one file associated with fileref MYFILE is still in use.
ERROR: Error in FILENAME statement.
I also get these messages if I attempt to filename myfile CLEAR
or filename myfile NULL
Also, if I run it with several URLs, only the first dataset gets created and the others are exact copies of it.
I have no access to the SAS configuration files. I have to solve this without any sort of administrative rights.
Thanks.