<?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 from SAS into txt file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/export-from-SAS-into-txt-file/m-p/650811#M195189</link>
    <description>&lt;P&gt;Perhaps your SAS code is running on Unix?&amp;nbsp; Look at the file on your pc with a different program than NOTEPAD.&amp;nbsp; NOTEPAD does not recognize a bare LINEFEED as marking the end of line. It wants to see the DOS standard of carriage return followed by linefeed.&lt;/P&gt;</description>
    <pubDate>Tue, 26 May 2020 15:37:39 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2020-05-26T15:37:39Z</dc:date>
    <item>
      <title>export from SAS into txt file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/export-from-SAS-into-txt-file/m-p/650593#M195100</link>
      <description>&lt;P&gt;Hello friends&lt;/P&gt;
&lt;P&gt;I am using proc export to export data from SAS data set into txt file.&lt;/P&gt;
&lt;P&gt;The SAS data set contain 1,000,000 rows.&lt;/P&gt;
&lt;P&gt;I expect that when I open the txt file in notepad then I will get also 1,000,000 rows.&lt;/P&gt;
&lt;P&gt;However,I see that the structure of the data is different and in each row there are multiple observations.&lt;/P&gt;
&lt;P&gt;My question: What is the way to get in txt file one observation in each row?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc export data=ttt
outfile ="path/myreport.txt"
dbms = dlm;
delimiter = ' ';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 May 2020 04:27:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/export-from-SAS-into-txt-file/m-p/650593#M195100</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2020-05-26T04:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: export from SAS into txt file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/export-from-SAS-into-txt-file/m-p/650614#M195110</link>
      <description>&lt;P&gt;Make sure that your text file has the correct line delimiter for the target operating system. Windows Editor, for example, does not understand the UNIX LF line terminator, it needs the DOS/Windows CRLF sequence.&lt;/P&gt;
&lt;P&gt;Since the documentation for the PROC EXPORT statement does not mention a TERMSTR= option, you will have to use a data step to write the file, where you can use TERMSTR=CRLF in the FILE statement. Copy the data step code (created by proc export) from the log and modify it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you open your text file with an editor that understands different line-ending methods (like Notepad++), you will see the correct layout and the "UNIX" designator in the status bar.&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 07:05:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/export-from-SAS-into-txt-file/m-p/650614#M195110</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-05-26T07:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: export from SAS into txt file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/export-from-SAS-into-txt-file/m-p/650785#M195178</link>
      <description>&lt;P&gt;What are the variables in your data set TTT ?&amp;nbsp; Do the character values contain control characters such as newline (0Ax), return (0Dx), or tab (09x) ?&amp;nbsp; What OS are you running SAS in ?&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 14:45:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/export-from-SAS-into-txt-file/m-p/650785#M195178</guid>
      <dc:creator>RichardDeVen</dc:creator>
      <dc:date>2020-05-26T14:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: export from SAS into txt file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/export-from-SAS-into-txt-file/m-p/650811#M195189</link>
      <description>&lt;P&gt;Perhaps your SAS code is running on Unix?&amp;nbsp; Look at the file on your pc with a different program than NOTEPAD.&amp;nbsp; NOTEPAD does not recognize a bare LINEFEED as marking the end of line. It wants to see the DOS standard of carriage return followed by linefeed.&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 15:37:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/export-from-SAS-into-txt-file/m-p/650811#M195189</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-05-26T15:37:39Z</dc:date>
    </item>
  </channel>
</rss>

