<?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: problems with deleting a variable. in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/problems-with-deleting-a-variable/m-p/195049#M48890</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Most likely the value in the variable is different than what you used in the IF statement.&lt;/P&gt;&lt;P&gt;Possibilities are:&lt;/P&gt;&lt;P&gt;Case differences. Try lowcase(vessel) = 'urkkotter' &lt;/P&gt;&lt;P&gt;Leading spaces in the variable.&amp;nbsp; Try strip(vessel)='urkkotter'&lt;/P&gt;&lt;P&gt;Other hidden characters such as tab or non-breaking space.&amp;nbsp; Use PUT VESSEL= $HEX. ; To see in the log the actual values.&lt;/P&gt;&lt;P&gt;The variable is formatted and you are trying to select on the formatted value instead of the actual value.&amp;nbsp; Try Vvalue(vessel) = 'urkkotter' &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Mar 2015 13:27:16 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2015-03-05T13:27:16Z</dc:date>
    <item>
      <title>problems with deleting a variable.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/problems-with-deleting-a-variable/m-p/195048#M48889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hey guys hope you can help me out on this one.&lt;/P&gt;&lt;P&gt;I have a database of 13 ships with alot of other variables.&lt;/P&gt;&lt;P&gt;I am trying to delete one of these ships from my database.&lt;/P&gt;&lt;P&gt;i have a variable collum called: VESSEL&lt;/P&gt;&lt;P&gt;I am using the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data new;&lt;/P&gt;&lt;P&gt;set Remco.tuna;&lt;/P&gt;&lt;P&gt;if vessel= 'urkkotter' then delete;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sas runs the code and does create a new table however, it does not delete the vessel 'urkkotter'&lt;/P&gt;&lt;P&gt;resulting in the new table being exactly the same as the Remco.tuna table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get no errors or notes in the log file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you can help out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remco.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 11:47:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/problems-with-deleting-a-variable/m-p/195048#M48889</guid>
      <dc:creator>willirem</dc:creator>
      <dc:date>2015-03-05T11:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: problems with deleting a variable.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/problems-with-deleting-a-variable/m-p/195049#M48890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Most likely the value in the variable is different than what you used in the IF statement.&lt;/P&gt;&lt;P&gt;Possibilities are:&lt;/P&gt;&lt;P&gt;Case differences. Try lowcase(vessel) = 'urkkotter' &lt;/P&gt;&lt;P&gt;Leading spaces in the variable.&amp;nbsp; Try strip(vessel)='urkkotter'&lt;/P&gt;&lt;P&gt;Other hidden characters such as tab or non-breaking space.&amp;nbsp; Use PUT VESSEL= $HEX. ; To see in the log the actual values.&lt;/P&gt;&lt;P&gt;The variable is formatted and you are trying to select on the formatted value instead of the actual value.&amp;nbsp; Try Vvalue(vessel) = 'urkkotter' &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 13:27:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/problems-with-deleting-a-variable/m-p/195049#M48890</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-03-05T13:27:16Z</dc:date>
    </item>
  </channel>
</rss>

