<?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: Blanks in file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Blanks-in-file/m-p/157628#M263032</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, knew its was something simple like that.&amp;nbsp; Informat=$varying200. works fine.&lt;/P&gt;&lt;P&gt;In response to LinusH, thanks for your response, actually its an RTF parser, mainly for validation, but possibly for other things as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Sep 2014 12:08:40 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2014-09-24T12:08:40Z</dc:date>
    <item>
      <title>Blanks in file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Blanks-in-file/m-p/157625#M263029</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;Probably something simple, but have tried the options and can't seem to get it working.&amp;nbsp; In a text file (RTF) I have some data fields with spaces in (asis=on from a proc report), looks like:&lt;/P&gt;&lt;P&gt;\pard\plain\intbl\sb0\sa0\ql\f1\fs18\cf1{Sometext {\line}&lt;/P&gt;&lt;P&gt;&amp;nbsp; More Text {\line}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Even More Text\cell}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On an infile statement:&lt;/P&gt;&lt;P&gt;&amp;nbsp; length buffer $2000.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile "S:\Temp\Rob\RTF\Current\FLT2504_DOSEA_L-0301-mh-rand.rtf" dsd missover lrecl=32767;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input buffer $;&lt;/P&gt;&lt;P&gt;These blanks are removed.&amp;nbsp; Any thoughts on getting them to read in correctly?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 08:51:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Blanks-in-file/m-p/157625#M263029</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-09-24T08:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: Blanks in file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Blanks-in-file/m-p/157626#M263030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have no isdea about the problem, attaching the rtf could help us test.&lt;/P&gt;&lt;P&gt;But why do you want to read an rtf created by SAS? Is this a rescue operation and the original data is not available?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 11:35:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Blanks-in-file/m-p/157626#M263030</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2014-09-24T11:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Blanks in file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Blanks-in-file/m-p/157627#M263031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to use an INFORMAT that does not trim leading blanks.&amp;nbsp; Your INPUT BUFFER $; statement is using LIST input which you don't want. Looks like you want to read the whole line as a string.&amp;nbsp; I use $VARYING informat with the LENGTH= option for the length variable.&amp;nbsp; This is fine as long as LRECL is LE 32767 which I expect it will be for RTF.&amp;nbsp; I have not seen RTF with LRECL anywhere near that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 12:02:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Blanks-in-file/m-p/157627#M263031</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-09-24T12:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Blanks in file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Blanks-in-file/m-p/157628#M263032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, knew its was something simple like that.&amp;nbsp; Informat=$varying200. works fine.&lt;/P&gt;&lt;P&gt;In response to LinusH, thanks for your response, actually its an RTF parser, mainly for validation, but possibly for other things as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 12:08:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Blanks-in-file/m-p/157628#M263032</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-09-24T12:08:40Z</dc:date>
    </item>
  </channel>
</rss>

