<?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 get your data from nonuniform data in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/how-to-get-your-data-from-nonuniform-data/m-p/446422#M69464</link>
    <description>And what is your question more specifically?</description>
    <pubDate>Sat, 17 Mar 2018 08:21:42 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2018-03-17T08:21:42Z</dc:date>
    <item>
      <title>how to get your data from nonuniform data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-get-your-data-from-nonuniform-data/m-p/446416#M69462</link>
      <description>&lt;P&gt;data phones;&lt;BR /&gt;input ph_number;&lt;BR /&gt;cards;&lt;BR /&gt;2022933923&lt;BR /&gt;4162673894&lt;BR /&gt;4345768&lt;BR /&gt;9848784697&lt;BR /&gt;7436348&lt;BR /&gt;8643679&lt;BR /&gt;7846&lt;BR /&gt;7547&lt;BR /&gt;7848699499&lt;BR /&gt;7552884&lt;BR /&gt;5745&lt;BR /&gt;3897&lt;BR /&gt;2938&lt;BR /&gt;4346&lt;BR /&gt;4178&lt;BR /&gt;8776&lt;BR /&gt;9877&lt;BR /&gt;5648&lt;BR /&gt;4385&lt;BR /&gt;2574&lt;BR /&gt;4573774889&lt;BR /&gt;3266487997&lt;BR /&gt;3734874&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc format;&lt;BR /&gt;picture ph_y 2000-9999="9999)" (prefix="(")&lt;BR /&gt;9999999999="999-999-9999"&lt;BR /&gt;9999999="999-9999"&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data ph;&lt;BR /&gt;set phones;&lt;BR /&gt;ph_n=put(ph_number,ph_y.);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i need my data like this..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;987-645-3676&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;345-7547&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(4777)&lt;/P&gt;</description>
      <pubDate>Sat, 17 Mar 2018 07:21:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-get-your-data-from-nonuniform-data/m-p/446416#M69462</guid>
      <dc:creator>rajeshV89</dc:creator>
      <dc:date>2018-03-17T07:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to get your data from nonuniform data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-get-your-data-from-nonuniform-data/m-p/446422#M69464</link>
      <description>And what is your question more specifically?</description>
      <pubDate>Sat, 17 Mar 2018 08:21:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-get-your-data-from-nonuniform-data/m-p/446422#M69464</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2018-03-17T08:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to get your data from nonuniform data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-get-your-data-from-nonuniform-data/m-p/446423#M69465</link>
      <description>&lt;DIV&gt;I have that data...from that i need to get data like this...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;373-373-8368&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 273-8478&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(6367)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have created a format and applied it on the particular variable but i got this&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;3733738368&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2738478&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (6367)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Picture format applied for only 4 digit value..but i need to apply the format for all observations having different digits...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;That also we can try using substr function...but i don't know why this picture format is not correctly applying on that variable.&lt;/DIV&gt;</description>
      <pubDate>Sat, 17 Mar 2018 08:36:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-get-your-data-from-nonuniform-data/m-p/446423#M69465</guid>
      <dc:creator>rajeshV89</dc:creator>
      <dc:date>2018-03-17T08:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to get your data from nonuniform data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-get-your-data-from-nonuniform-data/m-p/446429#M69466</link>
      <description>&lt;P&gt;You only defined a range in the first format picture, add 1000000000- and 1000000- respectively will solve your problem.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Mar 2018 12:13:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-get-your-data-from-nonuniform-data/m-p/446429#M69466</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2018-03-17T12:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to get your data from nonuniform data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-get-your-data-from-nonuniform-data/m-p/446431#M69467</link>
      <description>U r telling that we can't apply that format on this data...right??&lt;BR /&gt;&lt;BR /&gt;If data is like this We can apply that format..&lt;BR /&gt;&lt;BR /&gt;Data new;&lt;BR /&gt;Input ph-num;&lt;BR /&gt;Cards;&lt;BR /&gt;8398647377&lt;BR /&gt;7476366&lt;BR /&gt;;&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 17 Mar 2018 12:23:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-get-your-data-from-nonuniform-data/m-p/446431#M69467</guid>
      <dc:creator>rajeshV89</dc:creator>
      <dc:date>2018-03-17T12:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to get your data from nonuniform data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-get-your-data-from-nonuniform-data/m-p/446513#M69475</link>
      <description>No I'm telling you that you can, but you need to fix your picture format.&lt;BR /&gt;You need to use intervals for all three cases, the first one works since it has a correct interval. &lt;BR /&gt;St this point the other two is only valid for no 9999999999 and 9999999, which of course most phone no doesn't match.</description>
      <pubDate>Sat, 17 Mar 2018 23:25:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-get-your-data-from-nonuniform-data/m-p/446513#M69475</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2018-03-17T23:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to get your data from nonuniform data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-get-your-data-from-nonuniform-data/m-p/446723#M69481</link>
      <description>&lt;P&gt;As &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13674"&gt;@LinusH&lt;/a&gt;&amp;nbsp;mentioned, it is just a matter of getting your ranges right, something like&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
picture ph_y 
  2000-9999="9999)" (prefix="(")
  1000000000-9999999999="999-999-9999"
  1000000-9999999="999-9999"
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Mar 2018 11:24:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-get-your-data-from-nonuniform-data/m-p/446723#M69481</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2018-03-19T11:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to get your data from nonuniform data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-get-your-data-from-nonuniform-data/m-p/446724#M69482</link>
      <description>&lt;P&gt;very thankful to the code given by u...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want become a good programmer in sas...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i need ur valuable suggestions...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;kudos in advance..&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 11:36:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-get-your-data-from-nonuniform-data/m-p/446724#M69482</guid>
      <dc:creator>rajeshV89</dc:creator>
      <dc:date>2018-03-19T11:36:37Z</dc:date>
    </item>
  </channel>
</rss>

