<?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: Reshaping data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reshaping-data/m-p/839652#M331979</link>
    <description>&lt;P&gt;Why re-format at all? What can you do with a wide format that you can't do with a long format?&lt;/P&gt;</description>
    <pubDate>Thu, 20 Oct 2022 13:44:27 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2022-10-20T13:44:27Z</dc:date>
    <item>
      <title>Reshaping data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reshaping-data/m-p/839650#M331978</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;PRE class=""&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;My data consists of individuals (ID) who can appear several times with the same Date (Datex) but in different years.&lt;BR /&gt;The Year variable is unique within its ID and Datex. In my example, ID=1 has two different Datex that appear 4 times each.&lt;BR /&gt;The variable Year as unique values ​​in each Block of variable Datex&amp;nbsp; (see the table below). What I need to do is reformat the "Mark_type"&lt;BR /&gt;from long to wide for each ID within the DATEx&lt;BR /&gt;Tanks!&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;Datex&lt;/TD&gt;&lt;TD&gt;Year&lt;/TD&gt;&lt;TD&gt;Mark_type&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2005-05-05&lt;/TD&gt;&lt;TD&gt;2008&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2005-05-05&lt;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 20 Oct 2022 13:38:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reshaping-data/m-p/839650#M331978</guid>
      <dc:creator>MCB2</dc:creator>
      <dc:date>2022-10-20T13:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Reshaping data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reshaping-data/m-p/839652#M331979</link>
      <description>&lt;P&gt;Why re-format at all? What can you do with a wide format that you can't do with a long format?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 13:44:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reshaping-data/m-p/839652#M331979</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-10-20T13:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Reshaping data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reshaping-data/m-p/839672#M331984</link>
      <description>I need later on to concatinate the variable I am reshaping.</description>
      <pubDate>Thu, 20 Oct 2022 14:29:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reshaping-data/m-p/839672#M331984</guid>
      <dc:creator>MCB2</dc:creator>
      <dc:date>2022-10-20T14:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Reshaping data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reshaping-data/m-p/839675#M331985</link>
      <description>Show expected output please.&lt;BR /&gt;&lt;BR /&gt;Are you trying to concatenate a text field into a single value?&lt;BR /&gt;&lt;A href="https://gist.github.com/statgeek/d583cfa992bf56da51d435165b07e96a" target="_blank"&gt;https://gist.github.com/statgeek/d583cfa992bf56da51d435165b07e96a&lt;/A&gt;</description>
      <pubDate>Thu, 20 Oct 2022 14:35:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reshaping-data/m-p/839675#M331985</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-10-20T14:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Reshaping data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reshaping-data/m-p/839683#M331987</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/435984"&gt;@MCB2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I need later on to concatinate the variable I am reshaping.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;This doesn't really explain why you need it. This doesn't really explain how having a wide data set lets you do things that you can't do with a long data set. What are you going to do (what analysis, what report) with this concatenated variable(s) once you have them?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 14:46:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reshaping-data/m-p/839683#M331987</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-10-20T14:46:47Z</dc:date>
    </item>
  </channel>
</rss>

