<?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: Proc Export - New line in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-New-line/m-p/671814#M201796</link>
    <description>&lt;P&gt;Thanks Both.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The issue is with the line feed (Hex value - 0A). I have used compress function to resolve the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;NAME= compress(NAME, ,&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;'kw'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jul 2020 13:35:11 GMT</pubDate>
    <dc:creator>helannivas88</dc:creator>
    <dc:date>2020-07-23T13:35:11Z</dc:date>
    <item>
      <title>Proc Export - New line</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-New-line/m-p/671732#M201747</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In our SAS dataset which we have extracted the data from SAS , we have value as like below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"QWERTY&lt;BR /&gt;, xxx/ABCc Financial Services Ltd/XYX Wealth Limited"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;not in a single line.&amp;nbsp; When I proc export the dataset into a txt file , the line is getting broken and the below one (xxx/ABCc..) as a separate row in the txt file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to rectify the problem?? I think we have to resolve in the SAS dataset load rather than in proc export.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have used compress = yes while creating the work.dataset but nothing works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know the solution for this? Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 09:41:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-New-line/m-p/671732#M201747</guid>
      <dc:creator>helannivas88</dc:creator>
      <dc:date>2020-07-23T09:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export - New line</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-New-line/m-p/671738#M201750</link>
      <description>&lt;P&gt;You may have linefeeds in your data. Inspect the column in which the line break happens by displaying it with a $HEX format (format length must be double the defined variable length).&lt;/P&gt;
&lt;P&gt;Linefeeds are hex 0A, carriage returns 0D.&lt;/P&gt;
&lt;P&gt;If that is the case, use the TRANSLATE function to replace these special characters with blanks.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 10:01:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-New-line/m-p/671738#M201750</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-07-23T10:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export - New line</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-New-line/m-p/671790#M201785</link>
      <description>&lt;P&gt;SAS does not know how to read (or write) delimited files with end of line characters embedded into the value of a variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best solution is to remove those characters from the value before writing the delimited file.&amp;nbsp; For example by replacing them with spaces.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data for_export;
  set have;
  array _c _character_;
  do over _c;
    _c = translate(_c,'  ','0A0D'x);
  end;
run;

proc export data=for_export dbms=csv
  file='want.csv'
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Jul 2020 12:31:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-New-line/m-p/671790#M201785</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-07-23T12:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export - New line</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-New-line/m-p/671814#M201796</link>
      <description>&lt;P&gt;Thanks Both.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The issue is with the line feed (Hex value - 0A). I have used compress function to resolve the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;NAME= compress(NAME, ,&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;'kw'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 13:35:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-New-line/m-p/671814#M201796</guid>
      <dc:creator>helannivas88</dc:creator>
      <dc:date>2020-07-23T13:35:11Z</dc:date>
    </item>
  </channel>
</rss>

