<?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 sas function in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/sas-function/m-p/609245#M17852</link>
    <description>&lt;P&gt;I have a dataset in which the social security number names the variable soc is in the format 55555555. But I need it to be the usually for&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Dec 2019 04:15:30 GMT</pubDate>
    <dc:creator>timmy555</dc:creator>
    <dc:date>2019-12-04T04:15:30Z</dc:date>
    <item>
      <title>sas function</title>
      <link>https://communities.sas.com/t5/New-SAS-User/sas-function/m-p/609245#M17852</link>
      <description>&lt;P&gt;I have a dataset in which the social security number names the variable soc is in the format 55555555. But I need it to be the usually for&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 04:15:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/sas-function/m-p/609245#M17852</guid>
      <dc:creator>timmy555</dc:creator>
      <dc:date>2019-12-04T04:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: sas function</title>
      <link>https://communities.sas.com/t5/New-SAS-User/sas-function/m-p/609247#M17853</link>
      <description>&lt;P&gt;I suspect your variable SOC is character. It needs to be a number to apply the SSN format:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set have (obs= 10);
  socialsecurity=input(soc, best12.);
  format socialsecurity ssn11.;
  put socialsecurity = ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Dec 2019 03:44:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/sas-function/m-p/609247#M17853</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-12-04T03:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: sas function</title>
      <link>https://communities.sas.com/t5/New-SAS-User/sas-function/m-p/609248#M17854</link>
      <description>&lt;P&gt;Please try the below untested code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
x='555555555';
y=prxchange('s/(\d{3,3})(\d{2,2})(\d{4,4})/$1-$2-$3/',-1,x);
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Dec 2019 03:53:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/sas-function/m-p/609248#M17854</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2019-12-04T03:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: sas function</title>
      <link>https://communities.sas.com/t5/New-SAS-User/sas-function/m-p/609249#M17855</link>
      <description>&lt;P&gt;is there another way to apply the dashes through a function procedure?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 03:49:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/sas-function/m-p/609249#M17855</guid>
      <dc:creator>timmy555</dc:creator>
      <dc:date>2019-12-04T03:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: sas function</title>
      <link>https://communities.sas.com/t5/New-SAS-User/sas-function/m-p/609251#M17856</link>
      <description>&lt;P&gt;I figured it our thankyou needs the input and put function.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 03:53:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/sas-function/m-p/609251#M17856</guid>
      <dc:creator>timmy555</dc:creator>
      <dc:date>2019-12-04T03:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: sas function</title>
      <link>https://communities.sas.com/t5/New-SAS-User/sas-function/m-p/609252#M17857</link>
      <description>&lt;P&gt;You can also try the perl regular expression incase you havent tried the code i posted.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 03:54:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/sas-function/m-p/609252#M17857</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2019-12-04T03:54:50Z</dc:date>
    </item>
  </channel>
</rss>

