<?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: Complev ( Issue with space / NULL ) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Complev-Issue-with-space-NULL/m-p/438549#M109356</link>
    <description>Hi Chris,&lt;BR /&gt;&lt;BR /&gt;Yes thank you for the correction. Thanks for the clarification for output value.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Sreekar.</description>
    <pubDate>Tue, 20 Feb 2018 04:56:54 GMT</pubDate>
    <dc:creator>Sreekar</dc:creator>
    <dc:date>2018-02-20T04:56:54Z</dc:date>
    <item>
      <title>Complev ( Issue with space / NULL )</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Complev-Issue-with-space-NULL/m-p/438436#M109318</link>
      <description>Hi All,&lt;BR /&gt;Please can anyone give me a solution of the following code :&lt;BR /&gt;&lt;BR /&gt;(1-(complev(field1,field2)/max(lengthof(field1),lengthof(field2))*100&lt;BR /&gt;&lt;BR /&gt;With field1 value as 1&lt;BR /&gt;With field 2 value as NULL or space or no value in it.&lt;BR /&gt;&lt;BR /&gt;As per my understanding it has to be (1-(1/1))*100 i.e 0 as output, please can anyone confirm if it is right, my colleague tried it and op was shown as 91.66, not sure how it is possible. How does sas work with space or null values while computing? If i have 1 and null complev should be 1 and max length as 1.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.</description>
      <pubDate>Mon, 19 Feb 2018 17:06:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Complev-Issue-with-space-NULL/m-p/438436#M109318</guid>
      <dc:creator>Sreekar</dc:creator>
      <dc:date>2018-02-19T17:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Complev ( Issue with space / NULL )</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Complev-Issue-with-space-NULL/m-p/438546#M109355</link>
      <description>&lt;P&gt;1. The function &lt;FONT face="courier new,courier"&gt;lengthof&lt;/FONT&gt; is not a SAS function&lt;/P&gt;
&lt;P&gt;2. Your parentheses are unbalanced so we can't replicate your calculation&lt;/P&gt;
&lt;P&gt;This returns 0:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  FIELD1='1';
  FIELD2=' ';
  DIS=(1-(complev(FIELD1,FIELD2)/max(length(FIELD1),length(FIELD2))))*100 ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Feb 2018 04:15:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Complev-Issue-with-space-NULL/m-p/438546#M109355</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-02-20T04:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Complev ( Issue with space / NULL )</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Complev-Issue-with-space-NULL/m-p/438549#M109356</link>
      <description>Hi Chris,&lt;BR /&gt;&lt;BR /&gt;Yes thank you for the correction. Thanks for the clarification for output value.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Sreekar.</description>
      <pubDate>Tue, 20 Feb 2018 04:56:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Complev-Issue-with-space-NULL/m-p/438549#M109356</guid>
      <dc:creator>Sreekar</dc:creator>
      <dc:date>2018-02-20T04:56:54Z</dc:date>
    </item>
  </channel>
</rss>

