BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
mapk
Fluorite | Level 6

I have this url https://www.itl.nist.gov/div898/strd/anova/SiRstvt.dat 

I am trying to read this text file by skiping line 1 to 59 and create a table with columns I1, I2, I3, I4 and I5. How can I do this in SAS?

1 ACCEPTED SOLUTION

Accepted Solutions
Tom
Super User Tom
Super User

Looks it starts on line 61, not 60.

data test;
  infile 'https://www.itl.nist.gov/div898/strd/anova/SiRstvt.dat' url firstobs=61 truncover;
  input i1-i5 ;
run;
Obs       i1         i2         i3         i4         i5

 1     196.305    196.304    196.130    196.280    196.212
 2     196.124    196.383    196.201    196.175    196.105
 3     196.189    196.167    196.289    196.149    196.185
 4     196.257    196.326    196.034    196.149    196.005
 5     196.340    196.042    196.181    195.989    196.209

View solution in original post

1 REPLY 1
Tom
Super User Tom
Super User

Looks it starts on line 61, not 60.

data test;
  infile 'https://www.itl.nist.gov/div898/strd/anova/SiRstvt.dat' url firstobs=61 truncover;
  input i1-i5 ;
run;
Obs       i1         i2         i3         i4         i5

 1     196.305    196.304    196.130    196.280    196.212
 2     196.124    196.383    196.201    196.175    196.105
 3     196.189    196.167    196.289    196.149    196.185
 4     196.257    196.326    196.034    196.149    196.005
 5     196.340    196.042    196.181    195.989    196.209

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 471 views
  • 1 like
  • 2 in conversation