In the last three lines of your list of quoted items, a number of the items have curly quote marks, also known as "smart quotes," rather than straight quote marks, e.g. red quotes below:
'X09227’,’009227’,’00009227’,’000X09211’,’0X09227’,’000009227’,
This can happen sometimes if you type code into a word processor, or copy code from a word document or PDF. Curly quotes are bad for code.
I would open the code in your favorite SAS code editor, replace them with straight quote marks, and try again.
... View more