<?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 Text file output ignores line feeds in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Text-file-output-ignores-line-feeds/m-p/49999#M5439</link>
    <description>I have a macro which, among other functions, can write a text file (using PUT statements) that describes the parameters and their syntax.  I developed it using plain ol' Windows-based SAS (v 9.1.2) and it worked fine.  However, now that I'm running it under EG, the text file is only about 5 rows long - there are square-like characters indicating where line feeds should be.&lt;BR /&gt;
&lt;BR /&gt;
I can't find relevant KnowledgeBase articles or documentation to help determine what change in my environment is involved (is it that our BI server is now Unix-based?  was it moving to EG?  from 9.1.2 to 9.1.3?), or (more to the point) what to change in the code to make the output render properly.&lt;BR /&gt;
&lt;BR /&gt;
Any leads would be gratefully appreciated!&lt;BR /&gt;
Steve</description>
    <pubDate>Mon, 29 Jun 2009 20:26:18 GMT</pubDate>
    <dc:creator>Strange_Attractor</dc:creator>
    <dc:date>2009-06-29T20:26:18Z</dc:date>
    <item>
      <title>Text file output ignores line feeds</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Text-file-output-ignores-line-feeds/m-p/49999#M5439</link>
      <description>I have a macro which, among other functions, can write a text file (using PUT statements) that describes the parameters and their syntax.  I developed it using plain ol' Windows-based SAS (v 9.1.2) and it worked fine.  However, now that I'm running it under EG, the text file is only about 5 rows long - there are square-like characters indicating where line feeds should be.&lt;BR /&gt;
&lt;BR /&gt;
I can't find relevant KnowledgeBase articles or documentation to help determine what change in my environment is involved (is it that our BI server is now Unix-based?  was it moving to EG?  from 9.1.2 to 9.1.3?), or (more to the point) what to change in the code to make the output render properly.&lt;BR /&gt;
&lt;BR /&gt;
Any leads would be gratefully appreciated!&lt;BR /&gt;
Steve</description>
      <pubDate>Mon, 29 Jun 2009 20:26:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Text-file-output-ignores-line-feeds/m-p/49999#M5439</guid>
      <dc:creator>Strange_Attractor</dc:creator>
      <dc:date>2009-06-29T20:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Text file output ignores line feeds</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Text-file-output-ignores-line-feeds/m-p/50000#M5440</link>
      <description>Suggest you share the expanded SAS log (pasted in a post-reply here) showing the DATA step where you do the PUT statements, again to include the SAS log and associated diagnostic messages about your output "fileref" attributes.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Mon, 29 Jun 2009 20:43:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Text-file-output-ignores-line-feeds/m-p/50000#M5440</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-06-29T20:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Text file output ignores line feeds</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Text-file-output-ignores-line-feeds/m-p/50001#M5441</link>
      <description>The problem is the change in SAS servers.  Each version of SAS marks the end-of-line in a PUT file with the indicator that is native to that platform.  In Windows, it is a &lt;CR&gt;&lt;LF&gt; combination; in Unix, it is just a &lt;LF&gt;.&lt;BR /&gt;
&lt;BR /&gt;
Some Windows editors can adjust, but others cannot, so if you open the file in Word, ti will look and print fine, but if you open it in Notepad, you will see those little rectangles (Notepad's way of indicating a character that it cannot display.).&lt;BR /&gt;
&lt;BR /&gt;
There is a freely available utility called unix2dos that will convert the output from the Unix end-of-line to Windows.  See &lt;A href="http://en.wikipedia.org/wiki/Unix2dos" target="_blank"&gt;http://en.wikipedia.org/wiki/Unix2dos&lt;/A&gt; .  It is available in both Unix and Windows versions.&lt;BR /&gt;
&lt;BR /&gt;
Doc Muhlbaier&lt;BR /&gt;
Duke&lt;/LF&gt;&lt;/LF&gt;&lt;/CR&gt;</description>
      <pubDate>Mon, 29 Jun 2009 22:44:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Text-file-output-ignores-line-feeds/m-p/50001#M5441</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2009-06-29T22:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Text file output ignores line feeds</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Text-file-output-ignores-line-feeds/m-p/50002#M5442</link>
      <description>Thanks, Doc - I'll check that utility out.  Thanks also to Scott SBB!&lt;BR /&gt;
&lt;BR /&gt;
Steve</description>
      <pubDate>Tue, 30 Jun 2009 12:49:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Text-file-output-ignores-line-feeds/m-p/50002#M5442</guid>
      <dc:creator>Strange_Attractor</dc:creator>
      <dc:date>2009-06-30T12:49:03Z</dc:date>
    </item>
  </channel>
</rss>

