<?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: Splitting observation over multiple rows. in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Splitting-observation-over-multiple-rows/m-p/83178#M23856</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set have (keep=id v1-v8) have(keep=id v9-v16);&lt;/P&gt;&lt;P&gt;by id;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Sep 2013 00:17:08 GMT</pubDate>
    <dc:creator>Linlin</dc:creator>
    <dc:date>2013-09-16T00:17:08Z</dc:date>
    <item>
      <title>Splitting observation over multiple rows.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Splitting-observation-over-multiple-rows/m-p/83177#M23855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having trouble with a piece of SAS work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dataset i'm using is criminal data where each row/observation represents one charge where the person was found guilty.&amp;nbsp; Each observation contains information on the charge and the outcome, as well as well as the sentence handed out for that charge.&amp;nbsp; Every person is assigned their own number. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for a way to split each observation into two rows - one row for the data related to the charge and outcome and one row for the sentence data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the information is sensitive I cannot give an exact example of the data or the names of the variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But let's just say each observation has the offenders number and and 16 other variables, numbered 1 to 16.&amp;nbsp; How would I split each row into two so that row one has the offenders number and variables 1 through to 8, while the second row has the offenders number and variables 9 to 16.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 00:04:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Splitting-observation-over-multiple-rows/m-p/83177#M23855</guid>
      <dc:creator>Upinthesky</dc:creator>
      <dc:date>2013-09-16T00:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting observation over multiple rows.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Splitting-observation-over-multiple-rows/m-p/83178#M23856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set have (keep=id v1-v8) have(keep=id v9-v16);&lt;/P&gt;&lt;P&gt;by id;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 00:17:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Splitting-observation-over-multiple-rows/m-p/83178#M23856</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2013-09-16T00:17:08Z</dc:date>
    </item>
  </channel>
</rss>

