<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: writing xml using data step cannot write more than 200 character in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/writing-xml-using-data-step-cannot-write-more-than-200-character/m-p/409713#M100119</link>
    <description>&lt;P&gt;thanks i see it's a good option in case no condition to output if there is any way to put condition before output it would be better&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Nov 2017 06:57:44 GMT</pubDate>
    <dc:creator>Amahareek</dc:creator>
    <dc:date>2017-11-02T06:57:44Z</dc:date>
    <item>
      <title>writing xml using data step cannot write more than 200 character</title>
      <link>https://communities.sas.com/t5/SAS-Programming/writing-xml-using-data-step-cannot-write-more-than-200-character/m-p/409415#M100025</link>
      <description>&lt;P&gt;while trying to export SAS dataset to xml file in specific schema&amp;nbsp;&lt;/P&gt;&lt;P&gt;i used the below code which works fine in case the whole line length less than 200 character&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;tag&amp;gt;+&amp;lt;field_name&amp;gt;+&amp;lt;/tag&amp;gt; &amp;lt;=200&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;else only 200 character from Left hand side are written into the output file&amp;nbsp;&lt;/P&gt;&lt;P&gt;please help as this field can be 4000 character and i cannot write it to the xml this way&amp;nbsp;&lt;/P&gt;&lt;P&gt;or if there is a better way to write xml file using dataset which contain two columns&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;filename outxml '&amp;lt;file-path&amp;gt;';
data _null_;
set work.&amp;lt;dataset_name&amp;gt; NOBS=lst;
put '&amp;lt;tag&amp;gt;';
if (condition) then put &amp;lt;field_name&amp;gt; '&amp;lt;/tag&amp;gt;' ; 
end;
run; &lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Nov 2017 11:42:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/writing-xml-using-data-step-cannot-write-more-than-200-character/m-p/409415#M100025</guid>
      <dc:creator>Amahareek</dc:creator>
      <dc:date>2017-11-01T11:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: writing xml using data step cannot write more than 200 character</title>
      <link>https://communities.sas.com/t5/SAS-Programming/writing-xml-using-data-step-cannot-write-more-than-200-character/m-p/409420#M100026</link>
      <description>&lt;P&gt;Try: data _null_; file "c:\temp.xml" linesize=32767; ... run;&lt;/P&gt;

Or
filename outxml 'c:\temp.xml' lrecl=32767;</description>
      <pubDate>Wed, 01 Nov 2017 12:00:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/writing-xml-using-data-step-cannot-write-more-than-200-character/m-p/409420#M100026</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-11-01T12:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: writing xml using data step cannot write more than 200 character</title>
      <link>https://communities.sas.com/t5/SAS-Programming/writing-xml-using-data-step-cannot-write-more-than-200-character/m-p/409455#M100038</link>
      <description>&lt;P&gt;Consider using PROC STREAM.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 13:24:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/writing-xml-using-data-step-cannot-write-more-than-200-character/m-p/409455#M100038</guid>
      <dc:creator>AlanC</dc:creator>
      <dc:date>2017-11-01T13:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: writing xml using data step cannot write more than 200 character</title>
      <link>https://communities.sas.com/t5/SAS-Programming/writing-xml-using-data-step-cannot-write-more-than-200-character/m-p/409713#M100119</link>
      <description>&lt;P&gt;thanks i see it's a good option in case no condition to output if there is any way to put condition before output it would be better&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 06:57:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/writing-xml-using-data-step-cannot-write-more-than-200-character/m-p/409713#M100119</guid>
      <dc:creator>Amahareek</dc:creator>
      <dc:date>2017-11-02T06:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: writing xml using data step cannot write more than 200 character</title>
      <link>https://communities.sas.com/t5/SAS-Programming/writing-xml-using-data-step-cannot-write-more-than-200-character/m-p/409719#M100121</link>
      <description>thanks a lot it works with me&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Nov 2017 07:09:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/writing-xml-using-data-step-cannot-write-more-than-200-character/m-p/409719#M100121</guid>
      <dc:creator>Amahareek</dc:creator>
      <dc:date>2017-11-02T07:09:35Z</dc:date>
    </item>
  </channel>
</rss>

