<?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 Split a word from one to two columns in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Split-a-word-from-one-to-two-columns/m-p/45998#M9494</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with a column where some of the values (characters) are separated with a semicolon. &lt;/P&gt;&lt;P&gt;I want to split the values into two columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From:&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Column 1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1_LeftText;1_RightText&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2_Text&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3_LeftText;3_RightText&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To:&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Column 1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Column 2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1_LeftText&lt;/TD&gt;&lt;TD&gt;1_RightText&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2_Text&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3_LeftText&lt;/TD&gt;&lt;TD&gt;3_RightText&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably easy, but.... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lca&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 04 Feb 2012 15:19:13 GMT</pubDate>
    <dc:creator>lca</dc:creator>
    <dc:date>2012-02-04T15:19:13Z</dc:date>
    <item>
      <title>Split a word from one to two columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Split-a-word-from-one-to-two-columns/m-p/45998#M9494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with a column where some of the values (characters) are separated with a semicolon. &lt;/P&gt;&lt;P&gt;I want to split the values into two columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From:&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Column 1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1_LeftText;1_RightText&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2_Text&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3_LeftText;3_RightText&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To:&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Column 1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Column 2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1_LeftText&lt;/TD&gt;&lt;TD&gt;1_RightText&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2_Text&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3_LeftText&lt;/TD&gt;&lt;TD&gt;3_RightText&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably easy, but.... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lca&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Feb 2012 15:19:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Split-a-word-from-one-to-two-columns/m-p/45998#M9494</guid>
      <dc:creator>lca</dc:creator>
      <dc:date>2012-02-04T15:19:13Z</dc:date>
    </item>
    <item>
      <title>Split a word from one to two columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Split-a-word-from-one-to-two-columns/m-p/45999#M9495</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;&amp;nbsp; informat column $50.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input column &amp;amp;;&lt;/P&gt;&lt;P&gt;&amp;nbsp; datalines4;&lt;/P&gt;&lt;P&gt;1_LeftText;1_RightText&lt;/P&gt;&lt;P&gt;2_Text&lt;/P&gt;&lt;P&gt;3_LeftText;3_RightText&lt;/P&gt;&lt;P&gt;;;;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format column1 column2 $25.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; column1=scan(column,1,";");&lt;/P&gt;&lt;P&gt;&amp;nbsp; column2=scan(column,2,";");&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Feb 2012 15:26:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Split-a-word-from-one-to-two-columns/m-p/45999#M9495</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-02-04T15:26:23Z</dc:date>
    </item>
    <item>
      <title>Split a word from one to two columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Split-a-word-from-one-to-two-columns/m-p/46000#M9496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Consider Art's code and&lt;/P&gt;&lt;P&gt;drop the variable 'column' from the want data set if you want only two variables column1 and column2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff;"&gt;data want(drop=column);&lt;/P&gt;&lt;P style="background-color: #ffffff;"&gt;&amp;nbsp; set have;&lt;/P&gt;&lt;P style="background-color: #ffffff;"&gt;&amp;nbsp; format column1 column2 $25.;&lt;/P&gt;&lt;P style="background-color: #ffffff;"&gt;&amp;nbsp; column1=scan(column,1,";");&lt;/P&gt;&lt;P style="background-color: #ffffff;"&gt;&amp;nbsp; column2=scan(column,2,";");&lt;/P&gt;&lt;P style="background-color: #ffffff;"&gt;run;&lt;/P&gt;&lt;P&gt;proc print data=want;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 19:39:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Split-a-word-from-one-to-two-columns/m-p/46000#M9496</guid>
      <dc:creator>Vish33</dc:creator>
      <dc:date>2012-02-09T19:39:28Z</dc:date>
    </item>
  </channel>
</rss>

