<?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: .XML file created with file statement and dataset, has unexpected line breaks in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/XML-file-created-with-file-statement-and-dataset-has-unexpected/m-p/495259#M130669</link>
    <description>&lt;P&gt;I am not sure why it should matter if there are extra line breaks.&amp;nbsp; Those should be irrelevant to the XML format.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Most likely you just did not set a long enough line length.&amp;nbsp; The PUT statement will insert a line break if the current text you are trying to write will make the current line longer than the record length you told it to create.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What value did you use for the LRECL= option on your FILE statement?&amp;nbsp; Set it to something larger, like 10000000.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that is not long enough then just tell SAS not to write any line breaks by setting RECFM=N.&amp;nbsp; You could always put out some actual CR+LF characters yourself if you want to make the XML more readable for humans.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Sep 2018 12:54:57 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2018-09-13T12:54:57Z</dc:date>
    <item>
      <title>.XML file created with file statement and dataset, has unexpected line breaks</title>
      <link>https://communities.sas.com/t5/SAS-Programming/XML-file-created-with-file-statement-and-dataset-has-unexpected/m-p/495242#M130662</link>
      <description>&lt;P&gt;I am creating a .XML using file options and when opened file in notepad it has line breaks for longer rows. When line breaks are removed it gives a correct XML file.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 12:11:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/XML-file-created-with-file-statement-and-dataset-has-unexpected/m-p/495242#M130662</guid>
      <dc:creator>akash1088</dc:creator>
      <dc:date>2018-09-13T12:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: .XML file created with file statement and dataset, has unexpected line breaks</title>
      <link>https://communities.sas.com/t5/SAS-Programming/XML-file-created-with-file-statement-and-dataset-has-unexpected/m-p/495248#M130663</link>
      <description>&lt;P&gt;I am struggling to find a question here?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 12:20:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/XML-file-created-with-file-statement-and-dataset-has-unexpected/m-p/495248#M130663</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-09-13T12:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: .XML file created with file statement and dataset, has unexpected line breaks</title>
      <link>https://communities.sas.com/t5/SAS-Programming/XML-file-created-with-file-statement-and-dataset-has-unexpected/m-p/495257#M130667</link>
      <description>So basically my requirement is to create a xblr file.&lt;BR /&gt;So I am creating xblr file with the help of put statement and giving file extension is .XML and some of the line in that file is very long due to that it is truncate in next line and we are getting some error to solve this issue we are manually making changes in that truncate line.&lt;BR /&gt;so is there any options or method to resolve this issue.&lt;BR /&gt;&lt;BR /&gt;Previously I also face this issue(while creating.txt file) but with the help of termstr=crlf and that issue got solved.</description>
      <pubDate>Thu, 13 Sep 2018 12:33:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/XML-file-created-with-file-statement-and-dataset-has-unexpected/m-p/495257#M130667</guid>
      <dc:creator>akash1088</dc:creator>
      <dc:date>2018-09-13T12:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: .XML file created with file statement and dataset, has unexpected line breaks</title>
      <link>https://communities.sas.com/t5/SAS-Programming/XML-file-created-with-file-statement-and-dataset-has-unexpected/m-p/495259#M130669</link>
      <description>&lt;P&gt;I am not sure why it should matter if there are extra line breaks.&amp;nbsp; Those should be irrelevant to the XML format.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Most likely you just did not set a long enough line length.&amp;nbsp; The PUT statement will insert a line break if the current text you are trying to write will make the current line longer than the record length you told it to create.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What value did you use for the LRECL= option on your FILE statement?&amp;nbsp; Set it to something larger, like 10000000.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that is not long enough then just tell SAS not to write any line breaks by setting RECFM=N.&amp;nbsp; You could always put out some actual CR+LF characters yourself if you want to make the XML more readable for humans.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 12:54:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/XML-file-created-with-file-statement-and-dataset-has-unexpected/m-p/495259#M130669</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-09-13T12:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: .XML file created with file statement and dataset, has unexpected line breaks</title>
      <link>https://communities.sas.com/t5/SAS-Programming/XML-file-created-with-file-statement-and-dataset-has-unexpected/m-p/495261#M130671</link>
      <description>&lt;P&gt;If "very long" is greater than 32000, avoiding breaks is afaik not possible.&lt;/P&gt;
&lt;P&gt;else: check linesize-option of the infile-statement.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 12:42:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/XML-file-created-with-file-statement-and-dataset-has-unexpected/m-p/495261#M130671</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2018-09-13T12:42:57Z</dc:date>
    </item>
  </channel>
</rss>

