<?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 do I add more years to my dataset? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-add-more-years-to-my-dataset/m-p/714817#M220725</link>
    <description>Do you want 4 columns, one for each year per school?&lt;BR /&gt;Or do you want 4 rows, one for each year per school?&lt;BR /&gt;Or do you already have years but not all school has every year?</description>
    <pubDate>Wed, 27 Jan 2021 21:39:28 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-01-27T21:39:28Z</dc:date>
    <item>
      <title>How do I add more years to my dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-add-more-years-to-my-dataset/m-p/714808#M220721</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a list of 246 schools. I am trying to add a year column but each school should have 2019, 2018, 2017, 2016, and 2015. Can someone help me figure out a way to code this so that I do not have to go in manually for this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 21:12:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-add-more-years-to-my-dataset/m-p/714808#M220721</guid>
      <dc:creator>dpachorek</dc:creator>
      <dc:date>2021-01-27T21:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add more years to my dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-add-more-years-to-my-dataset/m-p/714811#M220723</link>
      <description>&lt;P&gt;If your current data has one record per school then something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data want;
   set have;
   do year=2015 to 2019;
       output;
   end;
run;&lt;/PRE&gt;
&lt;P&gt;which will duplicate all the values in the other variables.&lt;/P&gt;
&lt;P&gt;If you do not have one record per school then example of what you currently have and what the output should look like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the actual order really matters you could do: year = 2019 to 2015 by -1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 21:25:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-add-more-years-to-my-dataset/m-p/714811#M220723</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-01-27T21:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add more years to my dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-add-more-years-to-my-dataset/m-p/714817#M220725</link>
      <description>Do you want 4 columns, one for each year per school?&lt;BR /&gt;Or do you want 4 rows, one for each year per school?&lt;BR /&gt;Or do you already have years but not all school has every year?</description>
      <pubDate>Wed, 27 Jan 2021 21:39:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-add-more-years-to-my-dataset/m-p/714817#M220725</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-01-27T21:39:28Z</dc:date>
    </item>
  </channel>
</rss>

