<?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 table in one row file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Export-table-in-one-row-file/m-p/799129#M314204</link>
    <description>&lt;P&gt;how about this.&lt;/P&gt;
&lt;P&gt;Use put statement with&amp;nbsp;@.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;/* sample */
  length vars $32759;
  do i=1 to 5;
    vars=put(i,best.);
    output;
  end;
  drop  i;
run;

filename out temp ;
data _null_;
  set have;
  file out LRECL=163795;
  put vars @;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 28 Feb 2022 14:34:03 GMT</pubDate>
    <dc:creator>japelin</dc:creator>
    <dc:date>2022-02-28T14:34:03Z</dc:date>
    <item>
      <title>Export table in one row file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-table-in-one-row-file/m-p/799124#M314200</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a table with 5 rows and one column, the columns are formatted in $32759 (maximum allowed).&lt;BR /&gt;I need to export this table to txt format but it needs to be all in one row. If I do the proc export or data _null_ file and open the final file, for example with notepad++, I see that there are 5 rows.&amp;nbsp;I have also tried transposing but I always have the same problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I do this? Obviously without using xcommand.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 14:03:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-table-in-one-row-file/m-p/799124#M314200</guid>
      <dc:creator>luca87</dc:creator>
      <dc:date>2022-02-28T14:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Export table in one row file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-table-in-one-row-file/m-p/799128#M314203</link>
      <description>&lt;P&gt;Try something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
   set sashelp.class(keep=Name) end=lastObs;
   file "onerow.txt";
   
   if not lastObs then put Name @;
   else put Name;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Feb 2022 14:30:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-table-in-one-row-file/m-p/799128#M314203</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-02-28T14:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Export table in one row file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-table-in-one-row-file/m-p/799129#M314204</link>
      <description>&lt;P&gt;how about this.&lt;/P&gt;
&lt;P&gt;Use put statement with&amp;nbsp;@.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;/* sample */
  length vars $32759;
  do i=1 to 5;
    vars=put(i,best.);
    output;
  end;
  drop  i;
run;

filename out temp ;
data _null_;
  set have;
  file out LRECL=163795;
  put vars @;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Feb 2022 14:34:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-table-in-one-row-file/m-p/799129#M314204</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2022-02-28T14:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Export table in one row file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-table-in-one-row-file/m-p/799300#M314292</link>
      <description>&lt;P&gt;Check RECFM=N option of INFILE or FILENAME ,which could excess the limit of 32767.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
set sashelp.class;
file 'c:\temp\want.txt' recfm=n;
put (_all_) (:);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 01 Mar 2022 12:47:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-table-in-one-row-file/m-p/799300#M314292</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-03-01T12:47:33Z</dc:date>
    </item>
  </channel>
</rss>

