data recovery; infile 'C:\Users\liaodong\Documents\My SAS Files\9.4\bio\project\recovery.txt' dlm='09'x firstobs=2; input ID treatment age duration score1 score2 score3 score4; run; title 1 row; proc print data = recovery ; run;
/*the following picture is my data set, the 38-41 rows disappear after running the code above?
why?
the result is the following:
the result is the following: (row 38-41 disappear, why?)
What does the SAS log say?
Why do you post photographs of text? Isn't it harder to to create and post the photos than it would be to just copy the actual text and paste it?
Not sure of the reason why they are missing, however you may try the option TRUNCOVER and run the code
data recovery;
infile 'C:\Users\liaodong\Documents\My SAS Files\9.4\bio\project\recovery.txt' dlm='09'x firstobs=2 TRUNCOVER;
input ID treatment age duration score1 score2 score3 score4;
run;
title 1 row;
proc print data = recovery ;
run;
Attach the file to your next post, and post the log from the step using the </> button.
For the future: do NOT post data in pictures. Copy/paste text data into a window opened with the </> button; post SAS datasets as data steps with datalines. Use the "little running man" for code.
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!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.