<?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 Question on referring to variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Question-on-referring-to-variables/m-p/23016#M3785</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Reeza and data_null_:!&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reeza - I forgot to mention that I had tried = first and checked the length of the customer identifier in the actual table, and concluded there were no trailing spaces in my first post.&amp;nbsp; I also wouldn't have been able to explain how the identifier was hashed because someone else had done it before me and sent it to me that way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data_null_: - I knew I was missing something small and somewhat obvious but I could not find the answer to why this was happening anywhere, and it was the x following the quoted string.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again to you both for quick replies to my vague post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jun 2011 03:52:49 GMT</pubDate>
    <dc:creator>shotstopper30</dc:creator>
    <dc:date>2011-06-30T03:52:49Z</dc:date>
    <item>
      <title>Question on referring to variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-on-referring-to-variables/m-p/23013#M3782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am a fairly new user to SAS and have discovered some issues I can't get my head around.&amp;nbsp; I am working with a huge transactional data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I first created a data set that included a hashed customer identifier along with a new purchase column that was sorted in descending order.&amp;nbsp; I became curious with the observation that came to the top of this list.&amp;nbsp; So, I was interested in revealing the rest of the variables from the original data set that went along with this top customer's purchases (SKUs, date/time of purchase, etc).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's an example of what I entered (I'm just looking for the first entry for now since this is a huge data set and takes a long time to run.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql inobs=1;&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;from ben.&amp;lt;datasetname&amp;gt;&lt;/P&gt;&lt;P&gt;where &amp;lt;identifier&amp;gt; like "3B342DC8";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result every time is not an error code but a blank results page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The hashed customer identifier is of type hexadecimal and I'm wondering if that's what's causing my problems.&amp;nbsp; I have also tried the contains statement as well as % and _ to solve this issue and find out if there are any wild cards that I can't see.&amp;nbsp; No luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 21:48:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-on-referring-to-variables/m-p/23013#M3782</guid>
      <dc:creator>shotstopper30</dc:creator>
      <dc:date>2011-06-29T21:48:45Z</dc:date>
    </item>
    <item>
      <title>Question on referring to variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-on-referring-to-variables/m-p/23014#M3783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Have you tried = and check the length of the character variable in your customer identifier and actual table.&amp;nbsp; Your actual variable in the dataset could have trailing spaces perhaps?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you explain how you created your hash identifier as well and how it maps to the old dataset?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 22:21:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-on-referring-to-variables/m-p/23014#M3783</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2011-06-29T22:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Question on referring to variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-on-referring-to-variables/m-p/23015#M3784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure I understand completely, but character hex constants are specified in SAS as "quoted hex string" followed by X.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;"3B342DC8"x&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 22:33:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-on-referring-to-variables/m-p/23015#M3784</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2011-06-29T22:33:39Z</dc:date>
    </item>
    <item>
      <title>Question on referring to variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-on-referring-to-variables/m-p/23016#M3785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Reeza and data_null_:!&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reeza - I forgot to mention that I had tried = first and checked the length of the customer identifier in the actual table, and concluded there were no trailing spaces in my first post.&amp;nbsp; I also wouldn't have been able to explain how the identifier was hashed because someone else had done it before me and sent it to me that way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data_null_: - I knew I was missing something small and somewhat obvious but I could not find the answer to why this was happening anywhere, and it was the x following the quoted string.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again to you both for quick replies to my vague post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2011 03:52:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-on-referring-to-variables/m-p/23016#M3785</guid>
      <dc:creator>shotstopper30</dc:creator>
      <dc:date>2011-06-30T03:52:49Z</dc:date>
    </item>
  </channel>
</rss>

