Hello, I am trying to call an API that only accepts one argument at a time. I want to call it about 100 times. I have my code set up so that the returned data is saved into a txt file "resp". Currently, every time I call the API, the "resp" file is replaced. I would rather each call's returned data be appended to the file. Here is my code so far: (I will add in an array of ids eventually) %MACRO callapi (id=);
proc http
url ="api/url/etc"
method="get"
out=resp;
run;
%MEND callapi;
%callapi(id=id1); I guess one solution would be to create a new folder and have every response create a new file and append them afterwards, but I'd rather not do that if I don't have to. Thank you!
... View more