<?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: Reformatting data within a data step in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Reformatting-data-within-a-data-step/m-p/518590#M3587</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input id  reading  spelling  math  science;
cards;
 1       45        38    31       42
 ;

proc transpose data=have out=want(rename=(_name_=Type col1=score));
by id;
var reading--science;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 04 Dec 2018 21:47:05 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2018-12-04T21:47:05Z</dc:date>
    <item>
      <title>Reformatting data within a data step</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Reformatting-data-within-a-data-step/m-p/518587#M3586</link>
      <description>&lt;P&gt;I'm very new to sas and I'm having quite a bit of trouble with reformatting a data set I have.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using a small data set that contains an id number and then scores for reading, spelling, math, science. The first line of the data set is set up as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;id  reading  spelling  math  science
 1       45        38    31       42&lt;/PRE&gt;&lt;P&gt;I would like to reformat it using a data step to look like this:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;id       type      score
 1    reading         45
 1   spelling         38
 1       math         31 
 1    science         42&lt;/PRE&gt;&lt;P&gt;Thank you for any advice in the right direction!&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 21:40:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Reformatting-data-within-a-data-step/m-p/518587#M3586</guid>
      <dc:creator>smilegirl01</dc:creator>
      <dc:date>2018-12-04T21:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Reformatting data within a data step</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Reformatting-data-within-a-data-step/m-p/518590#M3587</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input id  reading  spelling  math  science;
cards;
 1       45        38    31       42
 ;

proc transpose data=have out=want(rename=(_name_=Type col1=score));
by id;
var reading--science;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Dec 2018 21:47:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Reformatting-data-within-a-data-step/m-p/518590#M3587</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-12-04T21:47:05Z</dc:date>
    </item>
  </channel>
</rss>

