<?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: stream text file on linux to _webout in Developers</title>
    <link>https://communities.sas.com/t5/Developers/stream-text-file-on-linux-to-webout/m-p/96614#M3623</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It may be that %qcmpress is removing them, at least from this quicky test code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;%let a = a long string that breaks across lines&lt;/P&gt;&lt;P&gt;here is the contination on another line.&lt;/P&gt;&lt;P&gt;There should be a crlf in here somewhere.;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%put %qcmpres(&amp;amp;a);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which on my system generates:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a long string that breaks across lines here is the contination on another line. There should be a&lt;/P&gt;&lt;P&gt;crlf in here somewhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The line break in the output provided by the LOG generator.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Dec 2012 22:15:00 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2012-12-11T22:15:00Z</dc:date>
    <item>
      <title>stream text file on linux to _webout</title>
      <link>https://communities.sas.com/t5/Developers/stream-text-file-on-linux-to-webout/m-p/96612#M3621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a text file on linux.&lt;/P&gt;&lt;P&gt;i have a stored process that reads the file and streams it to _webout.&lt;/P&gt;&lt;P&gt;the user gets it in his browser as an attachment that opens in notepad.&lt;/P&gt;&lt;P&gt;in notepad, the lines don't end.&lt;/P&gt;&lt;P&gt;the reason is that the line termination string is LF ('0a'x), for notepad it should be CRLF ('0a'x'0d'x).&lt;/P&gt;&lt;P&gt;i tried tranwrd-ing 0a to 0d0a which did not work.&lt;/P&gt;&lt;P&gt;also file _webout termstr=crlf doesn't work.&lt;/P&gt;&lt;P&gt;can anyone tell me what would?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: arial; font-size: small;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: arial; font-size: small;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; rc = stpsrv_header("Content-type","text/plain");&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: arial; font-size: small;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; rc = stpsrv_header("Content-disposition","%str(attachment; filename=saslog.txt)");&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: arial; font-size: small;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: arial; font-size: small;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: arial; font-size: small;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; infile "%qcmpres(&amp;amp;job_log_file)";&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: arial; font-size: small;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; input;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: arial; font-size: small;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; file _webout termstr=crlf;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: arial; font-size: small;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; put _infile_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: arial; font-size: small;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Bart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 16:37:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/stream-text-file-on-linux-to-webout/m-p/96612#M3621</guid>
      <dc:creator>bheinsius</dc:creator>
      <dc:date>2012-12-11T16:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: stream text file on linux to _webout</title>
      <link>https://communities.sas.com/t5/Developers/stream-text-file-on-linux-to-webout/m-p/96613#M3622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because of your "termstr" option, I really think this should work. The only thing I can suggest is to use a hex editor and see what the termination character in your text file is. If it is crlf, SAS is working right and something's wrong with your viewer. If it's lf, I would report it to SAS tech support and see what they say.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 21:10:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/stream-text-file-on-linux-to-webout/m-p/96613#M3622</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2012-12-11T21:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: stream text file on linux to _webout</title>
      <link>https://communities.sas.com/t5/Developers/stream-text-file-on-linux-to-webout/m-p/96614#M3623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It may be that %qcmpress is removing them, at least from this quicky test code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;%let a = a long string that breaks across lines&lt;/P&gt;&lt;P&gt;here is the contination on another line.&lt;/P&gt;&lt;P&gt;There should be a crlf in here somewhere.;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%put %qcmpres(&amp;amp;a);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which on my system generates:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a long string that breaks across lines here is the contination on another line. There should be a&lt;/P&gt;&lt;P&gt;crlf in here somewhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The line break in the output provided by the LOG generator.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 22:15:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/stream-text-file-on-linux-to-webout/m-p/96614#M3623</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2012-12-11T22:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: stream text file on linux to _webout</title>
      <link>https://communities.sas.com/t5/Developers/stream-text-file-on-linux-to-webout/m-p/96615#M3624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks but the %qcmpres is only applied to the filename, not to the text written to _webout..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 22:19:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/stream-text-file-on-linux-to-webout/m-p/96615#M3624</guid>
      <dc:creator>bheinsius</dc:creator>
      <dc:date>2012-12-11T22:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: stream text file on linux to _webout</title>
      <link>https://communities.sas.com/t5/Developers/stream-text-file-on-linux-to-webout/m-p/96616#M3625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;at &lt;A href="http://support.sas.com/kb/18/969.html" title="http://support.sas.com/kb/18/969.html"&gt;18969 - Specifying an encoding for the _WEBOUT fileref does not work when yourun a stored process with the Stored Process Server &lt;/A&gt;i read:&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;SPAN style="color: #333333; font-family: Arial, Helvetica, Verdana, sans-serif;"&gt;When you run a stored process with the Stored Process Server, any encoding value that you specify for the _WEBOUT fileref will be ignored.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial, Helvetica, Verdana, sans-serif;"&gt;this was fixed but maybe the same applies to the termstr option on _webout.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial, Helvetica, Verdana, sans-serif;"&gt;unless someone posts the solution i will report it to sasts tomorrow.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 22:24:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/stream-text-file-on-linux-to-webout/m-p/96616#M3625</guid>
      <dc:creator>bheinsius</dc:creator>
      <dc:date>2012-12-11T22:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: stream text file on linux to _webout</title>
      <link>https://communities.sas.com/t5/Developers/stream-text-file-on-linux-to-webout/m-p/96617#M3626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i reported it to sas techsupp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the meantime i fixed it putting in an extra '0d'x:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; infile "%qcmpres(&amp;amp;job_log_file)";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; input;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; file _webout;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; put _infile_ '0d'x;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i will post sas techsupp's answer when it arrives.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2012 20:40:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/stream-text-file-on-linux-to-webout/m-p/96617#M3626</guid>
      <dc:creator>bheinsius</dc:creator>
      <dc:date>2012-12-12T20:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: stream text file on linux to _webout</title>
      <link>https://communities.sas.com/t5/Developers/stream-text-file-on-linux-to-webout/m-p/96618#M3627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sas techsupp thinks that, although not documented, the termstr option is already implicitly applied and cannot be overwritten.&lt;/P&gt;&lt;P&gt;they suggest the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px; background-color: #ffffff;"&gt;&amp;nbsp; %LET EOL = '0a0d'x;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px; background-color: #ffffff;"&gt;&amp;nbsp; DATA _NULL_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rc = STPSRV_HEADER('Content-type', 'text/plain');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rc = STPSRV_HEADER('Content-&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px; background-color: #ffffff;"&gt;disposition', 'attachment; filename="saslog.txt"');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FILE _WEBOUT RECFM=V;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PUT 'De Sint zat te denken' &amp;amp;EOL;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PUT 'Wat voor CRLF hij zal schenken' &amp;amp;EOL;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PUT 'Een Sinterklaasgedicht op rijm' &amp;amp;EOL;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PUT 'Geschikt voor Windows met een "echte" new line' &amp;amp;EOL;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 13.333333969116211px; background-color: #ffffff;"&gt;&amp;nbsp; RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 15:56:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/stream-text-file-on-linux-to-webout/m-p/96618#M3627</guid>
      <dc:creator>bheinsius</dc:creator>
      <dc:date>2012-12-13T15:56:33Z</dc:date>
    </item>
  </channel>
</rss>

