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).
... View more