<?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: EXPORT of a comma delimited txt file is not coming out as a table. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/EXPORT-of-a-comma-delimited-txt-file-is-not-coming-out-as-a/m-p/545494#M150915</link>
    <description>&lt;P&gt;Ah!! That actually works!!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you so much!&lt;/P&gt;</description>
    <pubDate>Sat, 23 Mar 2019 16:35:31 GMT</pubDate>
    <dc:creator>daft22</dc:creator>
    <dc:date>2019-03-23T16:35:31Z</dc:date>
    <item>
      <title>EXPORT of a comma delimited txt file is not coming out as a table.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/EXPORT-of-a-comma-delimited-txt-file-is-not-coming-out-as-a/m-p/545489#M150911</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I am trying to export a comma delimited txt file from a table on a data set that has several variables, but when I export it from SAS, my txt file does not appear as a table as the original file did.&lt;BR /&gt;&lt;BR /&gt;The following is how I wrote my EXPORT function:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;PROC EXPORT DATA=OutFile&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;OUTFILE='/folders/myfolders/sasuser.v94/OutFile.txt'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;DBMS=CSV;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;RUN;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;And this is how most of my data appears on the exported txt file:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAS error.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28141iFACD441E48C463B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="SAS error.png" alt="SAS error.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I appreciate any and all help!&lt;/P&gt;&lt;P&gt;Also, I am using SAS university edition.&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Sat, 23 Mar 2019 16:07:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/EXPORT-of-a-comma-delimited-txt-file-is-not-coming-out-as-a/m-p/545489#M150911</guid>
      <dc:creator>daft22</dc:creator>
      <dc:date>2019-03-23T16:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: EXPORT of a comma delimited txt file is not coming out as a table.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/EXPORT-of-a-comma-delimited-txt-file-is-not-coming-out-as-a/m-p/545490#M150912</link>
      <description>&lt;P&gt;Can you post an example of what your data looks like in the SAS data set? And what do you want your csv file to look like? With or without headers?&lt;/P&gt;</description>
      <pubDate>Sat, 23 Mar 2019 16:10:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/EXPORT-of-a-comma-delimited-txt-file-is-not-coming-out-as-a/m-p/545490#M150912</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-03-23T16:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: EXPORT of a comma delimited txt file is not coming out as a table.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/EXPORT-of-a-comma-delimited-txt-file-is-not-coming-out-as-a/m-p/545492#M150913</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;&lt;BR /&gt;I would indeed like headers since they are included in the original file. The original file is a space delimited txt file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAS Example.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28142i356AFA7D7BA06E26/image-size/large?v=v2&amp;amp;px=999" role="button" title="SAS Example.png" alt="SAS Example.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I apologize for blurring out everything; the above quoted variables are my headers, and the bottom variables each correspond to each header variable in order.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, I need to export my data set, which used this original space delimited txt file, into a comma delimited txt file.&lt;BR /&gt;&lt;BR /&gt;Thank you for your help!&lt;/P&gt;</description>
      <pubDate>Sat, 23 Mar 2019 16:24:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/EXPORT-of-a-comma-delimited-txt-file-is-not-coming-out-as-a/m-p/545492#M150913</guid>
      <dc:creator>daft22</dc:creator>
      <dc:date>2019-03-23T16:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: EXPORT of a comma delimited txt file is not coming out as a table.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/EXPORT-of-a-comma-delimited-txt-file-is-not-coming-out-as-a/m-p/545493#M150914</link>
      <description>&lt;P&gt;Looks like you have line terminators that the Windows notepad does not understand.&lt;/P&gt;
&lt;P&gt;What happens when you import it with Excel?&lt;/P&gt;
&lt;P&gt;How does it look in notepad++?&lt;/P&gt;</description>
      <pubDate>Sat, 23 Mar 2019 16:30:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/EXPORT-of-a-comma-delimited-txt-file-is-not-coming-out-as-a/m-p/545493#M150914</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-03-23T16:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: EXPORT of a comma delimited txt file is not coming out as a table.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/EXPORT-of-a-comma-delimited-txt-file-is-not-coming-out-as-a/m-p/545494#M150915</link>
      <description>&lt;P&gt;Ah!! That actually works!!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you so much!&lt;/P&gt;</description>
      <pubDate>Sat, 23 Mar 2019 16:35:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/EXPORT-of-a-comma-delimited-txt-file-is-not-coming-out-as-a/m-p/545494#M150915</guid>
      <dc:creator>daft22</dc:creator>
      <dc:date>2019-03-23T16:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: EXPORT of a comma delimited txt file is not coming out as a table.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/EXPORT-of-a-comma-delimited-txt-file-is-not-coming-out-as-a/m-p/545510#M150916</link>
      <description>&lt;P&gt;University Edition runs in a UNIX virtual machine. UNIX uses a single LF character as line separator, while Windows uses a CRLF combination.&lt;/P&gt;
&lt;P&gt;By taking the data step (that proc export creates) from the log and adding a&lt;/P&gt;
&lt;PRE&gt;termstr=CRLF&lt;/PRE&gt;
&lt;P&gt;option to the&amp;nbsp;&lt;FONT face="courier new,courier"&gt;file&lt;/FONT&gt;&amp;nbsp;statement, you can automatically produce Windows-compatible text files.&lt;/P&gt;
&lt;P&gt;AFAIK, proc export has no method to add the termstr option.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Mar 2019 17:56:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/EXPORT-of-a-comma-delimited-txt-file-is-not-coming-out-as-a/m-p/545510#M150916</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-03-23T17:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: EXPORT of a comma delimited txt file is not coming out as a table.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/EXPORT-of-a-comma-delimited-txt-file-is-not-coming-out-as-a/m-p/545521#M150921</link>
      <description>&lt;P&gt;If you just want to covert the file and do not actually need to process it in SAS then you can just read and write in one data step.&lt;/P&gt;
&lt;P&gt;Looks like you have 11 columns.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  infile 'source.txt' truncover ;
  file 'target.csv' dsd termstr=crlf ;
  input (col1-col11) (:$200.);
  put col1-col11;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 23 Mar 2019 19:35:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/EXPORT-of-a-comma-delimited-txt-file-is-not-coming-out-as-a/m-p/545521#M150921</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-03-23T19:35:12Z</dc:date>
    </item>
  </channel>
</rss>

