Hello
I am a new user, trying to teach myself SAS Studio. I was working with the SASHELP Cars data and then I tried to import my own csv files. NOw Cars doesn't work, and I get error messages with basic proc print run commands. I can't see any of the data.
Very very green with SAS
But I need to get this going as I teach it Monday morning!
here's the command and errors:
proc print sashelp.cars;
run;
Errors:
Clue as to the solution from your LOG. The underlined text, SASHELP.CARS is the bit referred to by the ERROR 22-322. It showed options that are acceptable meaning the set name was in a position where an option was expected.
The second clue is the data set mentioned as not existing that was not used in your code. SAS will try to help by using the last data set created as input if you miss or do not use the data=somedatesetname.
I've been programming in SAS for more than 30 years and still make this error of missing the DATA= part about once a month when thinking of some other detail (or interrupted).
proc print data=sashelp.cars;
OMG THank you! Simple. I was freaking out!
I am still learning all the nuances. I am more familiar with SPSS...
Thank you thank you thank you
!
Clue as to the solution from your LOG. The underlined text, SASHELP.CARS is the bit referred to by the ERROR 22-322. It showed options that are acceptable meaning the set name was in a position where an option was expected.
The second clue is the data set mentioned as not existing that was not used in your code. SAS will try to help by using the last data set created as input if you miss or do not use the data=somedatesetname.
I've been programming in SAS for more than 30 years and still make this error of missing the DATA= part about once a month when thinking of some other detail (or interrupted).
Nearly 200 sessions are now available on demand in the Innovate Hub.
Watch Now →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.