<?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: Difficulty with the SPEDIS function in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Difficulty-with-the-SPEDIS-function/m-p/396066#M95583</link>
    <description>&lt;P&gt;Use the code from the provided files or type it out. You're likely getting these errors by copying the code from a PDF file or EPUB file I assume...assuming a legal version. I've seen illegal versions in Doc files but&amp;nbsp;I'm assuming you're using a legal version.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Sep 2017 19:42:41 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-09-14T19:42:41Z</dc:date>
    <item>
      <title>Difficulty with the SPEDIS function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difficulty-with-the-SPEDIS-function/m-p/396057#M95577</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is copied directly from Learning SAS by Example. My understanding is that when there is an exact match, the value should be 0, and that it increases the further away a match is. However, the results I am getting show a value of 137 for all the inputs except for Alfred, which is 166. Also, the lock says that the variable Friedman is unitiialized, whatever that means?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions on why I am getting values of 137, and also what a variable that is unitialized means?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code:&lt;/P&gt;&lt;P&gt;------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data fuzzy ;&lt;/P&gt;&lt;P&gt;input Name $20. ;&lt;/P&gt;&lt;P&gt;Value = spedis(Name,‘Friedman’) ;&lt;/P&gt;&lt;P&gt;datalines ;&lt;/P&gt;&lt;P&gt;Friedman&lt;/P&gt;&lt;P&gt;Freedman&lt;/P&gt;&lt;P&gt;Xriedman&lt;/P&gt;&lt;P&gt;Freidman&lt;/P&gt;&lt;P&gt;Alfred&lt;/P&gt;&lt;P&gt;FRIEDMAN&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the results&lt;/P&gt;&lt;P&gt;-------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value&amp;nbsp; Friedman&lt;/P&gt;&lt;P&gt;Friedman 137 &amp;nbsp; &amp;nbsp; .&lt;/P&gt;&lt;P&gt;Freedman 137 &amp;nbsp;&amp;nbsp; .&lt;/P&gt;&lt;P&gt;Xriedman 137&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/P&gt;&lt;P&gt;Freidman 137 &amp;nbsp; &amp;nbsp; .&lt;/P&gt;&lt;P&gt;Alfred 166&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/P&gt;&lt;P&gt;FRIEDMAN 137 &amp;nbsp; .&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 19:22:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difficulty-with-the-SPEDIS-function/m-p/396057#M95577</guid>
      <dc:creator>ManitobaMoose</dc:creator>
      <dc:date>2017-09-14T19:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty with the SPEDIS function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difficulty-with-the-SPEDIS-function/m-p/396062#M95581</link>
      <description>&lt;P&gt;The quotes you have around "Friedman" within the function are not true quotes ... they are some similar character.&amp;nbsp; Try deleting them, and re-typing the quotes, then re-run.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 19:35:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difficulty-with-the-SPEDIS-function/m-p/396062#M95581</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-09-14T19:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty with the SPEDIS function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difficulty-with-the-SPEDIS-function/m-p/396063#M95582</link>
      <description>&lt;P&gt;The code you posted will not run.&lt;/P&gt;
&lt;P&gt;This line&lt;/P&gt;
&lt;P&gt;Value = spedis(Name,‘Friedman’) ;&lt;/P&gt;
&lt;P&gt;has "smart quotes", the curly version instead of a simple '&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After correcting that error when I run your code I get&lt;/P&gt;
&lt;DIV class="branch"&gt;&lt;A name="IDX" target="_blank"&gt;&lt;/A&gt;
&lt;DIV&gt;
&lt;DIV align="left"&gt;
&lt;TABLE class="table" cellspacing="0" cellpadding="3" summary="Procedure Print: Data Set USER.FUZZY"&gt;&lt;COLGROUP&gt; &lt;COL /&gt; &lt;COL /&gt;&lt;/COLGROUP&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="c m header" scope="col"&gt;Name&lt;/TH&gt;
&lt;TH class="c m header" scope="col"&gt;Value&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;Friedman&lt;/TD&gt;
&lt;TD class="r data"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;Freedman&lt;/TD&gt;
&lt;TD class="r data"&gt;12&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;Xriedman&lt;/TD&gt;
&lt;TD class="r data"&gt;25&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;Freidman&lt;/TD&gt;
&lt;TD class="r data"&gt;6&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;Alfred&lt;/TD&gt;
&lt;TD class="r data"&gt;100&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;FRIEDMAN&lt;/TD&gt;
&lt;TD class="r data"&gt;87&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="branch"&gt;So there may be something else going on.&lt;/DIV&gt;</description>
      <pubDate>Thu, 14 Sep 2017 19:37:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difficulty-with-the-SPEDIS-function/m-p/396063#M95582</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-09-14T19:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty with the SPEDIS function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difficulty-with-the-SPEDIS-function/m-p/396066#M95583</link>
      <description>&lt;P&gt;Use the code from the provided files or type it out. You're likely getting these errors by copying the code from a PDF file or EPUB file I assume...assuming a legal version. I've seen illegal versions in Doc files but&amp;nbsp;I'm assuming you're using a legal version.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 19:42:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difficulty-with-the-SPEDIS-function/m-p/396066#M95583</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-09-14T19:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty with the SPEDIS function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difficulty-with-the-SPEDIS-function/m-p/396091#M95588</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for looking at this. I did remove the quotes, but I am still getting the error with the same results. Below is the Text, and then the log:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CODE:&lt;/P&gt;&lt;P&gt;Data fuzzy ;&lt;/P&gt;&lt;P&gt;input Name $20. ;&lt;/P&gt;&lt;P&gt;Value = spedis(Name,Friedman) ;&lt;/P&gt;&lt;P&gt;datalines ;&lt;/P&gt;&lt;P&gt;Friedman&lt;/P&gt;&lt;P&gt;Freedman&lt;/P&gt;&lt;P&gt;Xriedman&lt;/P&gt;&lt;P&gt;Freidman&lt;/P&gt;&lt;P&gt;Alfred&lt;/P&gt;&lt;P&gt;FRIEDMAN&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LOG:&lt;/P&gt;&lt;DIV class="sasSource"&gt;62 Data fuzzy ;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;63 input Name $20. ;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;64 Value = spedis(Name,Friedman) ;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;65 datalines ;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Numeric values have been converted to character values at the places given by: (Line):(Column).&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;64:22&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Variable Friedman is uninitialized.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The data set WORK.FUZZY has 6 observations and 3 variables.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: DATA statement used (Total process time):&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;real time 0.00 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;cpu time 0.00 seconds&lt;/DIV&gt;</description>
      <pubDate>Thu, 14 Sep 2017 20:33:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difficulty-with-the-SPEDIS-function/m-p/396091#M95588</guid>
      <dc:creator>ManitobaMoose</dc:creator>
      <dc:date>2017-09-14T20:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty with the SPEDIS function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difficulty-with-the-SPEDIS-function/m-p/396094#M95589</link>
      <description>&lt;P&gt;OK. Now I got it to work. What are smart quotes vs simple quotes? Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 20:36:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difficulty-with-the-SPEDIS-function/m-p/396094#M95589</guid>
      <dc:creator>ManitobaMoose</dc:creator>
      <dc:date>2017-09-14T20:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty with the SPEDIS function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difficulty-with-the-SPEDIS-function/m-p/396098#M95591</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/158207"&gt;@ManitobaMoose&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;OK. Now I got it to work. What are smart quotes vs simple quotes? Thanks!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Smart quotes are for word processing to make a start/end pair of smbols around the words&amp;nbsp;look pretty like in typeset books.&lt;/P&gt;
&lt;P&gt;The simple quote, in this case, is the programming language text identifier a value between ' '&amp;nbsp; or "&amp;nbsp; " is treated as text value&lt;/P&gt;
&lt;P&gt;(except for the things like date and name literals which have an ending character pair like 'd 'dt "n and such).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Programming languages are build with limits, spell things right or get an error, use the correct symbol or get an error, end the statement correctly or get an error....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Follow the syntax rules to get the desired results.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 20:54:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difficulty-with-the-SPEDIS-function/m-p/396098#M95591</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-09-14T20:54:34Z</dc:date>
    </item>
  </channel>
</rss>

