In Base SAS, variables in var lists are separated only by blanks, not by commas.
For future reference, paste code from the log with error messages into a code box using the forum {i} icon. That will preserve the plain text format of the log and the underscore characters, which show where SAS detected the error will align correctly. The main message windows on this forum will reformat pasted text otherwise.
Get started using SAS Studio to write, run and debug your SAS programs.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.