<?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 csv. csv shows one record in multiple lines in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-export-csv-csv-shows-one-record-in-multiple-lines/m-p/487841#M127138</link>
    <description>&lt;P&gt;Do you still see the same issue with the values appearing on the wrong line?&lt;/P&gt;
&lt;P&gt;From what you showed previously I would expect to see that balsum variable value appearing as the second value on a row following a comma. Something like&lt;/P&gt;
&lt;PRE&gt;,218818,,,,31575, (other stuff goes here)&lt;/PRE&gt;
&lt;P&gt;Since you picture didn't include a second line it is not possible to tell. If you do not see something like this than I expect the export worked fine. If you open it in a spreadsheet program and the "second" line appears that wasn't in the csv then it is pretty hard to tell what that program sees to insert a line but it may be an odd&amp;nbsp;value in the data of some form.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Aug 2018 16:59:22 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-08-17T16:59:22Z</dc:date>
    <item>
      <title>proc export csv. csv shows one record in multiple lines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-csv-csv-shows-one-record-in-multiple-lines/m-p/487791#M127116</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I use code to get csv:&lt;/P&gt;&lt;P&gt;proc export&amp;nbsp;&lt;BR /&gt;&amp;nbsp; data=hh_decrease&lt;BR /&gt;&amp;nbsp; dbms=csv&lt;BR /&gt;&amp;nbsp; outfile="/teamworkspace/Marketing Research/decrease15_18.csv"&lt;BR /&gt;&amp;nbsp; replace;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But output shows variables starting from balsum to the end (blue part)&amp;nbsp;in the second line(red part). But I want them in same line, which is all red values are in the blue part. How can I do it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-08-17 09_41_14-decrease15_18 - Excel.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22541i199501E2B21FB8A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="2018-08-17 09_41_14-decrease15_18 - Excel.png" alt="2018-08-17 09_41_14-decrease15_18 - Excel.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 14:43:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-csv-csv-shows-one-record-in-multiple-lines/m-p/487791#M127116</guid>
      <dc:creator>jojozheng</dc:creator>
      <dc:date>2018-08-17T14:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: proc export csv. csv shows one record in multiple lines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-csv-csv-shows-one-record-in-multiple-lines/m-p/487808#M127122</link>
      <description>&lt;P&gt;First hint: don't look at CSV files in a spreadsheet to see if the structure is correct. The spreadsheet will "interpret" things. Saving the file after making a change like column widths can change values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I might try printing 10 or 15 observations from proc print to see if the data looks correct before exporting. You might have something in you process that has the expected values in different records with the wrong variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If not reexport the data and examine the result in a plain text editor (the SAS editor will work).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 15:17:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-csv-csv-shows-one-record-in-multiple-lines/m-p/487808#M127122</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-08-17T15:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: proc export csv. csv shows one record in multiple lines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-csv-csv-shows-one-record-in-multiple-lines/m-p/487815#M127126</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&lt;/P&gt;&lt;P&gt;proc print shows exactly what I want.&amp;nbsp;I checked&amp;nbsp;proc export logs, it seems like&amp;nbsp;records&amp;nbsp;read in right format....&amp;nbsp;I don't know what I can do next? Can you give me more details?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 15:30:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-csv-csv-shows-one-record-in-multiple-lines/m-p/487815#M127126</guid>
      <dc:creator>jojozheng</dc:creator>
      <dc:date>2018-08-17T15:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: proc export csv. csv shows one record in multiple lines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-csv-csv-shows-one-record-in-multiple-lines/m-p/487817#M127127</link>
      <description>&lt;P&gt;Did you try re-exporting the data and examining the file in a text editor?&lt;/P&gt;
&lt;P&gt;Note that you may have to turn off any line wrap if using notepad or some other similar.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 15:37:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-csv-csv-shows-one-record-in-multiple-lines/m-p/487817#M127127</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-08-17T15:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: proc export csv. csv shows one record in multiple lines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-csv-csv-shows-one-record-in-multiple-lines/m-p/487824#M127129</link>
      <description>&lt;P&gt;Yes. I re-exporting and open notepad, there is no line wrap, but there is a word wrap,&amp;nbsp;and I turn off:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-08-17 10_49_27-decrease15_18 - Notepad.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22542iA7C158CE3EE19F22/image-size/large?v=v2&amp;amp;px=999" role="button" title="2018-08-17 10_49_27-decrease15_18 - Notepad.png" alt="2018-08-17 10_49_27-decrease15_18 - Notepad.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 15:50:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-csv-csv-shows-one-record-in-multiple-lines/m-p/487824#M127129</guid>
      <dc:creator>jojozheng</dc:creator>
      <dc:date>2018-08-17T15:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: proc export csv. csv shows one record in multiple lines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-csv-csv-shows-one-record-in-multiple-lines/m-p/487841#M127138</link>
      <description>&lt;P&gt;Do you still see the same issue with the values appearing on the wrong line?&lt;/P&gt;
&lt;P&gt;From what you showed previously I would expect to see that balsum variable value appearing as the second value on a row following a comma. Something like&lt;/P&gt;
&lt;PRE&gt;,218818,,,,31575, (other stuff goes here)&lt;/PRE&gt;
&lt;P&gt;Since you picture didn't include a second line it is not possible to tell. If you do not see something like this than I expect the export worked fine. If you open it in a spreadsheet program and the "second" line appears that wasn't in the csv then it is pretty hard to tell what that program sees to insert a line but it may be an odd&amp;nbsp;value in the data of some form.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 16:59:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-csv-csv-shows-one-record-in-multiple-lines/m-p/487841#M127138</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-08-17T16:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: proc export csv. csv shows one record in multiple lines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-csv-csv-shows-one-record-in-multiple-lines/m-p/487917#M127163</link>
      <description>&lt;P&gt;That's likely a data quality issue where one of your variables has a line feed in it for some reason.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It will likely be the variable that's the last before the break...you can check it in a text editor and you check for end of line character. You can remove it with COMPRESS - check the options for invisible characters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/215650"&gt;@jojozheng&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;I use code to get csv:&lt;/P&gt;
&lt;P&gt;proc export&amp;nbsp;&lt;BR /&gt;&amp;nbsp; data=hh_decrease&lt;BR /&gt;&amp;nbsp; dbms=csv&lt;BR /&gt;&amp;nbsp; outfile="/teamworkspace/Marketing Research/decrease15_18.csv"&lt;BR /&gt;&amp;nbsp; replace;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But output shows variables starting from balsum to the end (blue part)&amp;nbsp;in the second line(red part). But I want them in same line, which is all red values are in the blue part. How can I do it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-08-17 09_41_14-decrease15_18 - Excel.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22541i199501E2B21FB8A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="2018-08-17 09_41_14-decrease15_18 - Excel.png" alt="2018-08-17 09_41_14-decrease15_18 - Excel.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 19:37:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-csv-csv-shows-one-record-in-multiple-lines/m-p/487917#M127163</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-08-17T19:37:32Z</dc:date>
    </item>
  </channel>
</rss>

