It seems a bit strange to me that it is the IP address that gets white-listed, can't you ask them to white-list the URL?
Another way to access the file could just be to use a filename, e.g.:
filename covid url 'https://covidtracking.com/api/v1/states/daily.csv';
proc import datafile=covid out=test dbms=csv replace;
run;
I am not sure whether this will be any different, though.
It seems a bit strange to me that it is the IP address that gets white-listed, can't you ask them to white-list the URL?
Another way to access the file could just be to use a filename, e.g.:
filename covid url 'https://covidtracking.com/api/v1/states/daily.csv';
proc import datafile=covid out=test dbms=csv replace;
run;
I am not sure whether this will be any different, though.
Thank you for your alternate solution of using the filename URL as a better alternative. I am not sure why our security team white lists IP addresses and not URLs. Because we are a hospital system, we tend to be more conservative in our approach to Internet access. Interestingly, both approaches worked when I tested your solution this morning. When I refreshed the table to demonstrate the process is repeatable, both approaches failed to connect to the source. I am going to operate under the assumption that this is not a SAS solvable problem and that I need to work with our security team and the website administrator to understand and resolve the issue.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.