Hi,
I am having difficulty properly importing this file into SAS. http://www.dougstats.com/12-13RD.txt
I would like to be able to write a code that imports it directly from the web. Let me know if you can help!
Thanks!
Use URL Access method (and change variable 3m and 3a to v3m and v3a) :
filename ex URL "http://www.dougstats.com/12-13RD.txt";
data test;
infile ex firstobs=2;
length player $16;
input Player $ Team $ PS $ GP Min FGM FGA V3M V3A FTM FTA OR TR AS ST TO BK PF DQ PTS TC EJ FF Sta;
run;
PG
Here's how to read it from the web.
But my syntax doesn't work either and I don't want to debug ![]()
I'm sure someone else will help though...
filename foo url
'http://www.dougstats.com/12-13RD.txt';
data test;
infile foo length=len firstobs=2;
input Player $8. Team $3. PS $2. GP Min FGM FGA 3M 3A FTM FTA OR TR AS ST TO BK PF DQ PTS TC EJ FF ;
run;
Use URL Access method (and change variable 3m and 3a to v3m and v3a) :
filename ex URL "http://www.dougstats.com/12-13RD.txt";
data test;
infile ex firstobs=2;
length player $16;
input Player $ Team $ PS $ GP Min FGM FGA V3M V3A FTM FTA OR TR AS ST TO BK PF DQ PTS TC EJ FF Sta;
run;
PG
Thanks!
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.