<?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: How to find fancy number from the variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-fancy-number-from-the-variable/m-p/161336#M31381</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;BR /&gt;input XYZ;&lt;BR /&gt;datalines;&lt;BR /&gt;123456&lt;BR /&gt;236514&lt;BR /&gt;454732&lt;BR /&gt;412356&lt;BR /&gt;947284&lt;BR /&gt;543216&lt;BR /&gt;621345&lt;BR /&gt;495345&lt;BR /&gt;321456&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;data want;&lt;BR /&gt;set have;&lt;BR /&gt;do i=1 to 6;&lt;BR /&gt; if find(put(xyz,6.),put(i,1.)) = 0 then do;goto pass;end;&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt;pass: ;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Sep 2014 07:51:29 GMT</pubDate>
    <dc:creator>Loko</dc:creator>
    <dc:date>2014-09-26T07:51:29Z</dc:date>
    <item>
      <title>How to find fancy number from the variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-fancy-number-from-the-variable/m-p/161329#M31374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to find fancy numbers from the my variable. Below is the dummy example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XYZ&lt;/P&gt;&lt;P&gt;123456&lt;/P&gt;&lt;P&gt;236514&lt;/P&gt;&lt;P&gt;412356&lt;/P&gt;&lt;P&gt;543216&lt;/P&gt;&lt;P&gt;621345&lt;/P&gt;&lt;P&gt;321456&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me out to finding the fancy numbers from my variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your help will help me a lot.&amp;nbsp; thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dishant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 05:35:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-fancy-number-from-the-variable/m-p/161329#M31374</guid>
      <dc:creator>dishant</dc:creator>
      <dc:date>2014-09-26T05:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to find fancy number from the variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-fancy-number-from-the-variable/m-p/161330#M31375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what do you mean by fancy numbers?&amp;nbsp; what is your desired output?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we imagine that your variable 'XYZ' is numeric?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 05:40:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-fancy-number-from-the-variable/m-p/161330#M31375</guid>
      <dc:creator>RamKumar</dc:creator>
      <dc:date>2014-09-26T05:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to find fancy number from the variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-fancy-number-from-the-variable/m-p/161331#M31376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find my below explanation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dummy Data :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;XYZ&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;123456&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;236514&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;454732&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;412356&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;947284&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;543216&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;621345&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;495345&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;321456&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;......&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;My Desired Output :&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;XYZ&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;123456&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;236514&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;412356&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;543216&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;621345&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;321456&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;.....&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Fancy number means looks Same only pattern will differ.&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;If any concerns please let me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 05:47:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-fancy-number-from-the-variable/m-p/161331#M31376</guid>
      <dc:creator>dishant</dc:creator>
      <dc:date>2014-09-26T05:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to find fancy number from the variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-fancy-number-from-the-variable/m-p/161332#M31377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you looking for numbers, that have digits: 1, 2,3, 4, 5, 6 in any order?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 07:16:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-fancy-number-from-the-variable/m-p/161332#M31377</guid>
      <dc:creator>gergely_batho</dc:creator>
      <dc:date>2014-09-26T07:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to find fancy number from the variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-fancy-number-from-the-variable/m-p/161333#M31378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;But not only 1,2,3,4,5,6, It can be any number. Likewise see the below one.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;XYZ&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;789123&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;897321&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;137892&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So It want to show those Observations who having different pattern but same Numbers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 07:25:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-fancy-number-from-the-variable/m-p/161333#M31378</guid>
      <dc:creator>dishant</dc:creator>
      <dc:date>2014-09-26T07:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to find fancy number from the variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-fancy-number-from-the-variable/m-p/161334#M31379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And where is the pattern given? Is it the first row?&amp;nbsp;&amp;nbsp; Or you want to find all the "fancy groups" in your dataset?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 07:30:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-fancy-number-from-the-variable/m-p/161334#M31379</guid>
      <dc:creator>gergely_batho</dc:creator>
      <dc:date>2014-09-26T07:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to find fancy number from the variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-fancy-number-from-the-variable/m-p/161335#M31380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I want to&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px; background-color: #ffffff;"&gt; find all the "fancy groups" in your dataset.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no such pattern given.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 07:32:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-fancy-number-from-the-variable/m-p/161335#M31380</guid>
      <dc:creator>dishant</dc:creator>
      <dc:date>2014-09-26T07:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to find fancy number from the variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-fancy-number-from-the-variable/m-p/161336#M31381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;BR /&gt;input XYZ;&lt;BR /&gt;datalines;&lt;BR /&gt;123456&lt;BR /&gt;236514&lt;BR /&gt;454732&lt;BR /&gt;412356&lt;BR /&gt;947284&lt;BR /&gt;543216&lt;BR /&gt;621345&lt;BR /&gt;495345&lt;BR /&gt;321456&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;data want;&lt;BR /&gt;set have;&lt;BR /&gt;do i=1 to 6;&lt;BR /&gt; if find(put(xyz,6.),put(i,1.)) = 0 then do;goto pass;end;&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt;pass: ;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 07:51:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-fancy-number-from-the-variable/m-p/161336#M31381</guid>
      <dc:creator>Loko</dc:creator>
      <dc:date>2014-09-26T07:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to find fancy number from the variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-fancy-number-from-the-variable/m-p/161337#M31382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;input XYZ;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;123456&lt;/P&gt;&lt;P&gt;236514&lt;/P&gt;&lt;P&gt;454732&lt;/P&gt;&lt;P&gt;412356&lt;/P&gt;&lt;P&gt;947284&lt;/P&gt;&lt;P&gt;543216&lt;/P&gt;&lt;P&gt;621345&lt;/P&gt;&lt;P&gt;495345&lt;/P&gt;&lt;P&gt;321456&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data tmp(keep=position XYZ key );&lt;/P&gt;&lt;P&gt;&amp;nbsp; set have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; position=_n_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; length key $ 6;&lt;/P&gt;&lt;P&gt;&amp;nbsp; array digits[6] $ 1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; do i=1 to dim(digits);&lt;/P&gt;&lt;P&gt;&amp;nbsp; digits&lt;I&gt;=substr(put(XYZ,6.),i,1);&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; call sortc(of digits&lt;LI&gt;);&lt;/LI&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; key=cats(of digits&lt;LI&gt;);&lt;/LI&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc sort data=tmp out=want;&lt;/P&gt;&lt;P&gt;by key;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Gergely Bathó&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 08:08:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-fancy-number-from-the-variable/m-p/161337#M31382</guid>
      <dc:creator>gergely_batho</dc:creator>
      <dc:date>2014-09-26T08:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to find fancy number from the variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-fancy-number-from-the-variable/m-p/161338#M31383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One suggestion, if you want to pull out sequences where the numbers 1-6 appear in any order, why not generate a dataset with all the possibilities, then do a where in that list:&lt;/P&gt;&lt;P&gt;data have;&lt;BR /&gt;&amp;nbsp; input XYZ;&lt;BR /&gt;datalines;&lt;BR /&gt;123456&lt;BR /&gt;236514&lt;BR /&gt;454732&lt;BR /&gt;412356&lt;BR /&gt;947284&lt;BR /&gt;543216&lt;BR /&gt;621345&lt;BR /&gt;495345&lt;BR /&gt;321456&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data sequence;&lt;BR /&gt;&amp;nbsp; seq=111111;&lt;BR /&gt;&amp;nbsp; do until (seq=666666);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; seq=seq+1;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;&amp;nbsp; create table WANT as&lt;BR /&gt;&amp;nbsp; select&amp;nbsp; *&lt;BR /&gt;&amp;nbsp; from&amp;nbsp;&amp;nbsp;&amp;nbsp; WORK.HAVE&lt;BR /&gt;&amp;nbsp; where&amp;nbsp;&amp;nbsp; XYZ in (select distinct SEQ from WORK.SEQUENCE);&lt;BR /&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 08:27:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-fancy-number-from-the-variable/m-p/161338#M31383</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-09-26T08:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to find fancy number from the variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-fancy-number-from-the-variable/m-p/161339#M31384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data want(drop=i cum);&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;cum=0;&lt;/P&gt;&lt;P&gt;do i=1 to 6;&lt;/P&gt;&lt;P&gt; cum + input(substr(put(xyz,6.),i,1),1.);&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;if cum=21;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 12:12:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-fancy-number-from-the-variable/m-p/161339#M31384</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-09-26T12:12:41Z</dc:date>
    </item>
  </channel>
</rss>

