<?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: Adding characters to a string in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Adding-characters-to-a-string/m-p/402996#M97908</link>
    <description>&lt;P&gt;Or neither, use a format. SAS even has a format...&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/leforinforref/64790/HTML/default/viewer.htm#n1sroiq0fqlgncn1d52g0go5xqeq.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/leforinforref/64790/HTML/default/viewer.htm#n1sroiq0fqlgncn1d52g0go5xqeq.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Convert your SSN to numeric using INPUT and then apply the format.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Oct 2017 00:04:20 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-10-11T00:04:20Z</dc:date>
    <item>
      <title>Adding characters to a string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-characters-to-a-string/m-p/402995#M97907</link>
      <description>&lt;P&gt;I am supposed to create a variable called SSN2. I currently have a variable called SSN that has the social security numbers in a format XXXXXXXXX, and want SSN2 to be in the format XXX-XX-XXXX, in other words adding hyphens in specific positions. I have tried using the CATX function, but I don't know if this is even the right function as I am just splitting the one variable up. Should I instead be using the SUBSTR function?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 00:00:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-characters-to-a-string/m-p/402995#M97907</guid>
      <dc:creator>marianhabesland</dc:creator>
      <dc:date>2017-10-11T00:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Adding characters to a string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-characters-to-a-string/m-p/402996#M97908</link>
      <description>&lt;P&gt;Or neither, use a format. SAS even has a format...&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/leforinforref/64790/HTML/default/viewer.htm#n1sroiq0fqlgncn1d52g0go5xqeq.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/leforinforref/64790/HTML/default/viewer.htm#n1sroiq0fqlgncn1d52g0go5xqeq.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Convert your SSN to numeric using INPUT and then apply the format.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 00:04:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-characters-to-a-string/m-p/402996#M97908</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-11T00:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Adding characters to a string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-characters-to-a-string/m-p/403126#M97947</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data have;&lt;BR /&gt;input ss_no $9.;&lt;BR /&gt;datalines;&lt;BR /&gt;absdefght&lt;BR /&gt;abadefght&lt;BR /&gt;absdefgtk&lt;BR /&gt;absdefgtp&lt;BR /&gt;absdefert&lt;BR /&gt;asedrftgh&lt;BR /&gt;potrpshrt&lt;BR /&gt;;run;&lt;/P&gt;
&lt;P&gt;data want;&lt;BR /&gt;set have;&lt;BR /&gt;ss_no_new = catx("-",substr(ss_no,1,3),substr(ss_no,4,2),substr(ss_no,6,4));&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 12:34:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-characters-to-a-string/m-p/403126#M97947</guid>
      <dc:creator>TarunKumar</dc:creator>
      <dc:date>2017-10-11T12:34:22Z</dc:date>
    </item>
  </channel>
</rss>

