Go into preferences, Code and Log and have it convert tabs to spaces and try re-running.
It's clear that your first step reading in the data isn't' run correctly.
More information is required.
Are you working on a locally installed version of SAS, or the cloud version, SAS On Demand?
Or a company server installation that you access via web browser?
What does not run mean? Do you get an error? If so, what is the error?
Yes, I am using OnDemand.
The error i get is invalid or missing data. My coworker downloaded the same exact file and ran it on his OnDemand and there was no error and everything read in correctly.
This is what it shows when I go to my results tab
Are you using SAS on Demand for Academics? If not, how are you running SAS on your Mac? And what error messages are you getting?
Yes, I am using OnDemand.
The error i get is invalid or missing data. My coworker downloaded the same exact file and ran it on his OnDemand and there was no error and everything read in correctly.
Did you accidently let some TAB characters get into your SAS program file?
Unlike in Display Manager where tabs are converted to spaces when you submit code from the Program Editor, when you submit code from SAS/Studio editor the tabs characters actually get sent to SAS as part of the file.
Go into preferences, Code and Log and have it convert tabs to spaces and try re-running.
It's clear that your first step reading in the data isn't' run correctly.
Generally it is better to copy your code and then paste it into text box opened on the forum with the </> icon than to provide attachments. That way we can see the code without having to open an extra file and some of us just won't open any attachment for security reasons, organization policies or in my case laziness.
Best when you get errors is to copy the code and all the messages from the LOG and paste that into a text box.
SAS is fairly good about providing problem diagnostics of many types but learning to understand the log may take a bit.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Ready to level-up your skills? Choose your own adventure.