<?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: transpose and get the long data keeping the same variables. in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/transpose-and-get-the-long-data-keeping-the-same-variables/m-p/754533#M8802</link>
    <description>&lt;P&gt;Is this a data mining question?&lt;/P&gt;
&lt;P&gt;You are talking about "previous and current year" but i don't see a variable named "year" in your table. Start by posting the data you have in usable form, then show the expected results and explain the rules to be applied.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Jul 2021 09:58:26 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2021-07-16T09:58:26Z</dc:date>
    <item>
      <title>transpose and get the long data keeping the same variables.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/transpose-and-get-the-long-data-keeping-the-same-variables/m-p/754508#M8801</link>
      <description>&lt;P&gt;Hi, I have below two tables. i want to populate the column ' Value' on the basis of 'previous year' and 'current year'. For example, A+ and A should have 20 as its value.&lt;/P&gt;&lt;P&gt;Now when the table1 is imported in SAS, SAS autmoatically rename the variable name, B- will become B_. Even if i import the data without renaming as per sas, it asks for sorting it while doing the transpose by grade.&lt;/P&gt;&lt;P&gt;Is there any way to go about this? Main goal is to populate 'value' using previous and current year.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;grade&lt;/TD&gt;&lt;TD&gt;A+&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;B-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A+&lt;/TD&gt;&lt;TD&gt;22&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;24&lt;/TD&gt;&lt;TD&gt;27&lt;/TD&gt;&lt;TD&gt;26&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B-&lt;/TD&gt;&lt;TD&gt;26&lt;/TD&gt;&lt;TD&gt;34&lt;/TD&gt;&lt;TD&gt;32&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;previous year&lt;/TD&gt;&lt;TD&gt;current year&lt;/TD&gt;&lt;TD&gt;Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A+&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;?&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;B-&lt;/TD&gt;&lt;TD&gt;?&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B-&lt;/TD&gt;&lt;TD&gt;A+&lt;/TD&gt;&lt;TD&gt;?&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Fri, 16 Jul 2021 08:08:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/transpose-and-get-the-long-data-keeping-the-same-variables/m-p/754508#M8801</guid>
      <dc:creator>Decay2020</dc:creator>
      <dc:date>2021-07-16T08:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: transpose and get the long data keeping the same variables.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/transpose-and-get-the-long-data-keeping-the-same-variables/m-p/754533#M8802</link>
      <description>&lt;P&gt;Is this a data mining question?&lt;/P&gt;
&lt;P&gt;You are talking about "previous and current year" but i don't see a variable named "year" in your table. Start by posting the data you have in usable form, then show the expected results and explain the rules to be applied.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 09:58:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/transpose-and-get-the-long-data-keeping-the-same-variables/m-p/754533#M8802</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2021-07-16T09:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: transpose and get the long data keeping the same variables.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/transpose-and-get-the-long-data-keeping-the-same-variables/m-p/754558#M8803</link>
      <description>row head is previous year and column head is current year.</description>
      <pubDate>Fri, 16 Jul 2021 11:34:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/transpose-and-get-the-long-data-keeping-the-same-variables/m-p/754558#M8803</guid>
      <dc:creator>Decay2020</dc:creator>
      <dc:date>2021-07-16T11:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: transpose and get the long data keeping the same variables.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/transpose-and-get-the-long-data-keeping-the-same-variables/m-p/754603#M8804</link>
      <description>&lt;P&gt;Time to start posting data examples in the form of a data step as shown in several responses to basically this exact same question in several of your other posts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure that any requirement like "previous year" or "current year" is either available from the variable names or details in the request.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 16:40:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/transpose-and-get-the-long-data-keeping-the-same-variables/m-p/754603#M8804</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-07-16T16:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: transpose and get the long data keeping the same variables.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/transpose-and-get-the-long-data-keeping-the-same-variables/m-p/754606#M8805</link>
      <description>&lt;P&gt;So you have posted two html tables (or spreadsheet tables) and not SAS datasets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What does your actual SAS data look like? What are the names of the variables? How are they defined (numeric or character: if character maximum length: are any special formats like DATE or TIME applied?).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first table you posted looks like a report you could generate from data that you have collected in the format&amp;nbsp; like the second table you posted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't have the data in SAS yet then what format is it in now? Text file? Something else?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 15:14:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/transpose-and-get-the-long-data-keeping-the-same-variables/m-p/754606#M8805</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-07-16T15:14:10Z</dc:date>
    </item>
  </channel>
</rss>

