<?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 Findw does not 'find' after line breaks in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Findw-does-not-find-after-line-breaks/m-p/426445#M105063</link>
    <description>&lt;P&gt;I am trying to pull in results from an excel file that has a column that is free text and figure out if I word is in that text. It appears as though where the line break is within the excel&amp;nbsp;file is where the data is getting cut off.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example (in excel):&lt;/P&gt;
&lt;P&gt;"CHOCOLATE&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;PRESENT MANY (&amp;gt;30):&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;VANILLA&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;PRESENT MANY (&amp;gt;30):&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;CARAMEL&amp;nbsp;PRESENT MANY (&amp;gt;30):"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The proc import that I used is the following:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;PROC IMPORT OUT= shelter_3 DATAFILE= "/shares/candy.xlsx" 
            DBMS=xlsx REPLACE;
     /*SHEET="auto";*/ 
     GETNAMES=YES;
RUN;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I see the imported file, the only line I see is the following:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"CHOCOLATE&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;PRESENT MANY (&amp;gt;30):"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But if I double click&amp;nbsp;I see all the text.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I then use the following pull out the flavor:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;CHOC= findw(Text_field, 'CHOCOLATE');&lt;BR /&gt;VAN= findw(Text_field, 'VANILLA');&lt;BR /&gt;CARA= findw(Text_field, 'CARAMEL');&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But the only once that is not zero is chocolate. It is as if the findw can't read past the line break&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jan 2018 14:14:34 GMT</pubDate>
    <dc:creator>daszlosek</dc:creator>
    <dc:date>2018-01-10T14:14:34Z</dc:date>
    <item>
      <title>Findw does not 'find' after line breaks</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Findw-does-not-find-after-line-breaks/m-p/426445#M105063</link>
      <description>&lt;P&gt;I am trying to pull in results from an excel file that has a column that is free text and figure out if I word is in that text. It appears as though where the line break is within the excel&amp;nbsp;file is where the data is getting cut off.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example (in excel):&lt;/P&gt;
&lt;P&gt;"CHOCOLATE&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;PRESENT MANY (&amp;gt;30):&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;VANILLA&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;PRESENT MANY (&amp;gt;30):&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;CARAMEL&amp;nbsp;PRESENT MANY (&amp;gt;30):"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The proc import that I used is the following:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;PROC IMPORT OUT= shelter_3 DATAFILE= "/shares/candy.xlsx" 
            DBMS=xlsx REPLACE;
     /*SHEET="auto";*/ 
     GETNAMES=YES;
RUN;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I see the imported file, the only line I see is the following:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"CHOCOLATE&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;PRESENT MANY (&amp;gt;30):"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But if I double click&amp;nbsp;I see all the text.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I then use the following pull out the flavor:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;CHOC= findw(Text_field, 'CHOCOLATE');&lt;BR /&gt;VAN= findw(Text_field, 'VANILLA');&lt;BR /&gt;CARA= findw(Text_field, 'CARAMEL');&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But the only once that is not zero is chocolate. It is as if the findw can't read past the line break&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 14:14:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Findw-does-not-find-after-line-breaks/m-p/426445#M105063</guid>
      <dc:creator>daszlosek</dc:creator>
      <dc:date>2018-01-10T14:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Findw does not 'find' after line breaks</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Findw-does-not-find-after-line-breaks/m-p/426459#M105069</link>
      <description>&lt;P&gt;Would the FIND&amp;nbsp;function do what you want?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise use the the FINDW as follows:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;VAN= findw(text_Field, 'VANILLA', "", "S");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The S modifier adds space characters (blank, horizontal tab, vertical tab, carriage return, line feed, and form feed) to the list of characters&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 14:32:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Findw-does-not-find-after-line-breaks/m-p/426459#M105069</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2018-01-10T14:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Findw does not 'find' after line breaks</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Findw-does-not-find-after-line-breaks/m-p/426468#M105072</link>
      <description>Yes! The S modifier helped with the carriage return issue! Thank you!</description>
      <pubDate>Wed, 10 Jan 2018 14:38:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Findw-does-not-find-after-line-breaks/m-p/426468#M105072</guid>
      <dc:creator>daszlosek</dc:creator>
      <dc:date>2018-01-10T14:38:44Z</dc:date>
    </item>
  </channel>
</rss>

