I can't get SAS to read in my text file on my mac, I've tried everything? Could someone please help, this is what I have.....
Data golf;
infile '/Users/katiemessi/Documents/golf.text';
input Distance_yards 18-22
Golfer_ID 28-29
Brand $ 39;
run;
If you're using SAS University Edition, which is local, though it appears in your browser then my previous suggestion applies.
If you're using SAS Academics on Demand, then no, this does not apply. In that case SAS cannot access files on your computer, because it's in the cloud. So you need to upload your data first. Go to files/folders/servers pane on the right hand side, there will be a picture of a cabinet or up arrow that can you use to upload your files. Then you can right click the file, select properties and see the file path you need to use.
Both assume you're using SAS Studio. If you're using EG its a different process again.
@KatieMessi wrote:
I’m using the online SAS Does this still apply
You need to use the myfolders you created at set up. Place your files in that folder and then you can reference them using:
/folders/myfolders/golf.txt
If you check out the Learning SAS subforum here, it has a lot of the starting up questions you likely have.
Edit: Another good resource is video.sas.com for learning tutorials.
@KatieMessi wrote:
I can't get SAS to read in my text file on my mac, I've tried everything? Could someone please help, this is what I have.....
Data golf;
infile '/Users/katiemessi/Documents/golf.text';
input Distance_yards 18-22
Golfer_ID 28-29
Brand $ 39;
run;
If you're using SAS University Edition, which is local, though it appears in your browser then my previous suggestion applies.
If you're using SAS Academics on Demand, then no, this does not apply. In that case SAS cannot access files on your computer, because it's in the cloud. So you need to upload your data first. Go to files/folders/servers pane on the right hand side, there will be a picture of a cabinet or up arrow that can you use to upload your files. Then you can right click the file, select properties and see the file path you need to use.
Both assume you're using SAS Studio. If you're using EG its a different process again.
@KatieMessi wrote:
I’m using the online SAS Does this still apply
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
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.
Ready to level-up your skills? Choose your own adventure.