Thanks for the reply.
You say you want to insert some XML into a "little table" -- is that little table in CSV format???
Lee>The source table contained one variable and one record. The xml string is hardcoded apart from one bit,which is a variable.
How did you create the table?
Lee>I create the table in the code attached. Just one column, one record.
Your programmed worked
6912 data _null_;
6913 file "C:\temp\test.xml";
6914 put @1 ' xyz ';
6915 run;
NOTE: The file "C:\temp\test.xml" is:
File Name=C:\temp\test.xml,
RECFM=V,LRECL=256
NOTE: 1 record was written to the file "C:\temp\test.xml".
But when I change it to support variable input and change the outside quotes to double quotes it has a problem with this solution.
6916 %let test=abc;
6917 data _null_;
6918 file "C:\temp\test.xml";
6919 put @1 " &test. ";
--------------------
49
ERROR: Invalid hexadecimal constant string ">
... View more