<?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: assign 1 to the variable Spacec when the value for country contains at least one space in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/assign-1-to-the-variable-Spacec-when-the-value-for-country/m-p/454537#M114887</link>
    <description>&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=n0vxokxhv8lr84n10nrbnzp7gnba.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=n0vxokxhv8lr84n10nrbnzp7gnba.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The documentation above explains what index does&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did it work. If yes, you could mark the question as answered and accepted to close the thread.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Apr 2018 18:50:08 GMT</pubDate>
    <dc:creator>Andygray</dc:creator>
    <dc:date>2018-04-16T18:50:08Z</dc:date>
    <item>
      <title>assign 1 to the variable Spacec when the value for country contains at least one space</title>
      <link>https://communities.sas.com/t5/SAS-Programming/assign-1-to-the-variable-Spacec-when-the-value-for-country/m-p/454512#M114879</link>
      <description>&lt;P&gt;Input country &amp;amp; $16. Team year;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;How to get the value 1 for the country that has at least one space?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Thx&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 17:04:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/assign-1-to-the-variable-Spacec-when-the-value-for-country/m-p/454512#M114879</guid>
      <dc:creator>elsalam</dc:creator>
      <dc:date>2018-04-16T17:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: assign 1 to the variable Spacec when the value for country contains at least one space</title>
      <link>https://communities.sas.com/t5/SAS-Programming/assign-1-to-the-variable-Spacec-when-the-value-for-country/m-p/454513#M114880</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;value= index(strip(country),' ')&amp;gt;0;
/*for 1,0 binary results*/&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;if index(strip(country),' ')&amp;gt;0;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if index(strip(country),' ')&amp;gt;0;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Apr 2018 17:13:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/assign-1-to-the-variable-Spacec-when-the-value-for-country/m-p/454513#M114880</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-04-16T17:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: assign 1 to the variable Spacec when the value for country contains at least one space</title>
      <link>https://communities.sas.com/t5/SAS-Programming/assign-1-to-the-variable-Spacec-when-the-value-for-country/m-p/454519#M114881</link>
      <description>&lt;P&gt;Thank you so much for the prompt response.&amp;nbsp; is work&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 17:53:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/assign-1-to-the-variable-Spacec-when-the-value-for-country/m-p/454519#M114881</guid>
      <dc:creator>elsalam</dc:creator>
      <dc:date>2018-04-16T17:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: assign 1 to the variable Spacec when the value for country contains at least one space</title>
      <link>https://communities.sas.com/t5/SAS-Programming/assign-1-to-the-variable-Spacec-when-the-value-for-country/m-p/454537#M114887</link>
      <description>&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=n0vxokxhv8lr84n10nrbnzp7gnba.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=n0vxokxhv8lr84n10nrbnzp7gnba.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The documentation above explains what index does&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did it work. If yes, you could mark the question as answered and accepted to close the thread.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 18:50:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/assign-1-to-the-variable-Spacec-when-the-value-for-country/m-p/454537#M114887</guid>
      <dc:creator>Andygray</dc:creator>
      <dc:date>2018-04-16T18:50:08Z</dc:date>
    </item>
  </channel>
</rss>

