<?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 transpose 1 column in to 2 columns keeping all other as it is? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-transpose-1-column-in-to-2-columns-keeping-all-other-as/m-p/954588#M372796</link>
    <description>&lt;P&gt;Not sure what you mean by transpose.&lt;/P&gt;
&lt;P&gt;If you want to make another variable that has the same values as SORD then a simple assignment statement will work.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set have;
  sord2 = sord;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But why?&lt;/P&gt;</description>
    <pubDate>Tue, 24 Dec 2024 23:25:03 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2024-12-24T23:25:03Z</dc:date>
    <item>
      <title>How to transpose 1 column in to 2 columns keeping all other as it is?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-transpose-1-column-in-to-2-columns-keeping-all-other-as/m-p/954586#M372794</link>
      <description>&lt;P&gt;I would like to transpose column sord only. here is the sample data below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yogita_patel_0-1735081133089.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/103366iAEFDA389F9A8F3B8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yogita_patel_0-1735081133089.png" alt="yogita_patel_0-1735081133089.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tried using ID statement. but other columns are also getting transpose.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2024 22:59:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-transpose-1-column-in-to-2-columns-keeping-all-other-as/m-p/954586#M372794</guid>
      <dc:creator>yogita_patel</dc:creator>
      <dc:date>2024-12-24T22:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to transpose 1 column in to 2 columns keeping all other as it is?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-transpose-1-column-in-to-2-columns-keeping-all-other-as/m-p/954587#M372795</link>
      <description>&lt;P&gt;I cannot imagine what this data set would look like if SORD is split into 2 columns but the other column stay as they are. Please show us.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, please take a step back and describe the real problem that this is related to, without reference to SAS or Excel or transforming this data. Most likely, your boss or professor wants you to solve a real problem, they didn't say transform this matrix, they asked you to solve a real problem. What is that real problem?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, we prefer data presented as working SAS data step code (&lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_self"&gt;examples and instructions&lt;/A&gt;). We can't really work with data in screen captures.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2024 23:17:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-transpose-1-column-in-to-2-columns-keeping-all-other-as/m-p/954587#M372795</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-12-24T23:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to transpose 1 column in to 2 columns keeping all other as it is?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-transpose-1-column-in-to-2-columns-keeping-all-other-as/m-p/954588#M372796</link>
      <description>&lt;P&gt;Not sure what you mean by transpose.&lt;/P&gt;
&lt;P&gt;If you want to make another variable that has the same values as SORD then a simple assignment statement will work.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set have;
  sord2 = sord;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But why?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2024 23:25:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-transpose-1-column-in-to-2-columns-keeping-all-other-as/m-p/954588#M372796</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-12-24T23:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to transpose 1 column in to 2 columns keeping all other as it is?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-transpose-1-column-in-to-2-columns-keeping-all-other-as/m-p/954597#M372800</link>
      <description>That would be better if you post desired output.&lt;BR /&gt;If you just want split column sord into two columns ,that is easy:&lt;BR /&gt;&lt;BR /&gt;data want;&lt;BR /&gt;  set have;&lt;BR /&gt;  if sord=1 then sord1=1;&lt;BR /&gt;  if sord=2 then sord2=2;&lt;BR /&gt;run;</description>
      <pubDate>Wed, 25 Dec 2024 01:55:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-transpose-1-column-in-to-2-columns-keeping-all-other-as/m-p/954597#M372800</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-12-25T01:55:51Z</dc:date>
    </item>
  </channel>
</rss>

