I have a variable with a single quote and ampersand that is being invoked when I don't want it to. In this data step, I am trying to create a variable with a single quote and Ampersand, but I'm getting the error that macro variable W is not resolved. What function can I use to fix this? Data SC_Mkt; Retain Supplier Alignment_Geo Alignment_Name Market Region BU; set SC_ZIP (keep=IMS_ZIP Market Region BU rename=(IMS_ZIP=Alignment_Geo)); Supplier="PAUL"; Alignment_Name="Paul's H&W"; run; In the following Proc Export, I am trying to use the same name in the outfile name, but also need to be able to invoke the macro for yyyymm and yyyymmdd. How can I fix this? proc export data=SC_Mkt outfile="C:\Alignment\&yyyymm Paul's\Upload to RxI\Paul's H&W &yyyymmdd..csv" DBMS=csv REPLACE; run; quit; Thank you, Kelly
... View more