As is known to all, SAS needs special care to quotation marks inside a sentence.
E.g.
%let quoted=\"I\'d like to\"; data temp; set temp; quoted=\
I'm not sure what you're trying to achieve in the actual situation, but in the above situation it can be solved removing the double quotation marks in the data step.
%let quoted="I'd like to"; data temp; set temp; quoted="ed; run;