I use SAS studio on SAS on demand and trying to get this data located in https://raw.githubusercontent.com/fivethirtyeight/data/master/nba-elo/nbaallelo.csv but not work, need help, I work in Windows system
/* use proc import to get data from url*/
filename file url "https://raw.githubusercontent.com/fivethirtyeight/data/master/nba-elo/nbaallelo.csv" termstr=crlf;
proc import datafile= file
out=urldata
replace
dbms=csv;
run;
I got this message in the log:
NOTE: Unable to open parameter catalog: SASUSER.PARMS.PARMS.SLIST in update mode. Temporary parameter values will be saved to WORK.PARMS.PARMS.SLIST. Unable to sample external file, no data in first 5 records. ERROR: Import unsuccessful. See SAS Log for details.
Try TERMSTR=CR
At least that worked for me.
That indicates the likely creator of the file uses a MAC, not Windows (CRLF) or Linux/Unix (LF)
Try TERMSTR=CR
At least that worked for me.
That indicates the likely creator of the file uses a MAC, not Windows (CRLF) or Linux/Unix (LF)
thanks so much , it works!
Make sure to test your links and such when you post them and to use the code/log block for your log. I'll clean up this post including the extra code box.
FYI - On Demand works in the cloud, which means anything created is on a unix system.
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.