<?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: Help exporting to a text file (not delimited) in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Help-exporting-to-a-text-file-not-delimited/m-p/51190#M14008</link>
    <description>Thanks guys!  That did the trick!</description>
    <pubDate>Fri, 15 Apr 2011 16:03:28 GMT</pubDate>
    <dc:creator>cjohnson</dc:creator>
    <dc:date>2011-04-15T16:03:28Z</dc:date>
    <item>
      <title>Help exporting to a text file (not delimited)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-exporting-to-a-text-file-not-delimited/m-p/51187#M14005</link>
      <description>I could really use some help exporting data to a text file.  I have a table of data, all columns are text.  I need to export this data (append to the end of) a text file with no delimiter between variables.&lt;BR /&gt;
&lt;BR /&gt;
I have tried the following methods:&lt;BR /&gt;
&lt;BR /&gt;
PROC EXPORT DATA=ISO.POLTRANS OUTFILE="TEST.TXT" REPLACE;&lt;BR /&gt;
DELIMITER="";&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
DATA _NULL_;&lt;BR /&gt;
   FILE "TEST.TXT" dsd dlm="";&lt;BR /&gt;
   SET ISO.POLTRANS;&lt;BR /&gt;
   PUT (_ALL_) (+0);&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
Either method puts a space between variables.  Also, either method replaces, not appends to, the file.&lt;BR /&gt;
&lt;BR /&gt;
I would really appreciate any help.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Chris</description>
      <pubDate>Fri, 15 Apr 2011 14:51:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-exporting-to-a-text-file-not-delimited/m-p/51187#M14005</guid>
      <dc:creator>cjohnson</dc:creator>
      <dc:date>2011-04-15T14:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help exporting to a text file (not delimited)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-exporting-to-a-text-file-not-delimited/m-p/51188#M14006</link>
      <description>Try the following:&lt;BR /&gt;
&lt;BR /&gt;
DATA _NULL_;&lt;BR /&gt;
FILE "TEST.TXT" MOD;&lt;BR /&gt;
SET ISO.POLTRANS;&lt;BR /&gt;
PUT (_ALL_) (+(-1));&lt;BR /&gt;
RUN;</description>
      <pubDate>Fri, 15 Apr 2011 15:24:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-exporting-to-a-text-file-not-delimited/m-p/51188#M14006</guid>
      <dc:creator>RickM</dc:creator>
      <dc:date>2011-04-15T15:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Help exporting to a text file (not delimited)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-exporting-to-a-text-file-not-delimited/m-p/51189#M14007</link>
      <description>You can use 'mod' option to append the text.&lt;BR /&gt;
&lt;BR /&gt;
data test;&lt;BR /&gt;
	name1 = 'Dan';&lt;BR /&gt;
	name2 = 'Tom';&lt;BR /&gt;
	name3 = 'Randy';&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
	file "test.txt" dsd dlm='' mod;&lt;BR /&gt;
	set test;&lt;BR /&gt;
	put (_all_) (+(-1));&lt;BR /&gt;
run;</description>
      <pubDate>Fri, 15 Apr 2011 15:24:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-exporting-to-a-text-file-not-delimited/m-p/51189#M14007</guid>
      <dc:creator>NickR</dc:creator>
      <dc:date>2011-04-15T15:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help exporting to a text file (not delimited)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-exporting-to-a-text-file-not-delimited/m-p/51190#M14008</link>
      <description>Thanks guys!  That did the trick!</description>
      <pubDate>Fri, 15 Apr 2011 16:03:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-exporting-to-a-text-file-not-delimited/m-p/51190#M14008</guid>
      <dc:creator>cjohnson</dc:creator>
      <dc:date>2011-04-15T16:03:28Z</dc:date>
    </item>
  </channel>
</rss>

