libname perm 'C:\Users\Eden\OneDrive\Documents'; data perm.fungal; infile 'C:\Users\Eden\OneDrive\Documents\fungal.txt' firstobs=2 expandtabs; input patno treat $ age sex $ severity clears run;
WARNING: The data set PERM.FUNGAL may be incomplete. When this step was stopped there were 0
observations and 7 variables.
WARNING: Data set PERM.FUNGAL was not replaced because this step was stopped.
This does not appear to be a syntax error but rather the input text file fungal.txt does not exist or is misspelled. It also looks like using EXPANDTABS is used to indicate the text file is a tab delimited file.
Show us the ENTIRE log from this DATA step. Please copy the log as text and paste it into the window that appears when you click on the </> icon.
1 libname perm 'C:\Users\Eden\OneDrive\Documents'; NOTE: Libref PERM was successfully assigned as follows: Engine: V9 Physical Name: C:\Users\Eden\OneDrive\Documents 2 data perm.fungal; 3 infile 'C:\Users\Eden\OneDrive\Documents\fungal.txt' firstobs=2 4 expandtabs; 5 input patno treat $ age sex $ severity clears; 6 run; ERROR: Physical file does not exist, C:\Users\Eden\OneDrive\Documents\fungal.txt. NOTE: The SAS System stopped processing this step because of errors. WARNING: The data set PERM.FUNGAL may be incomplete. When this step was stopped there were 0 observations and 6 variables. WARNING: Data set PERM.FUNGAL was not replaced because this step was stopped. NOTE: DATA statement used (Total process time): real time 0.07 seconds cpu time 0.03 seconds
That error seems obvious. The file doesn't exist. Make sure the file actually exists.
You seem to be using ONEDRIVE so perhaps that is messing things up somehow?
This does not appear to be a syntax error but rather the input text file fungal.txt does not exist or is misspelled. It also looks like using EXPANDTABS is used to indicate the text file is a tab delimited file.
It looks like you are missing a semicolon on the INPUT statement.
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!
Follow along as SAS’ Robert Blanchard explains three aspects of autotuning in a deep learning context: globalized search, localized search and an in parallel method using SAS.
Find more tutorials on the SAS Users YouTube channel.