<?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 to transpose data, with the missing id/code? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-transpose-data-with-the-missing-id-code/m-p/669861#M36445</link>
    <description>We cannot transpose the missing values</description>
    <pubDate>Thu, 16 Jul 2020 12:09:42 GMT</pubDate>
    <dc:creator>Jagadishkatam</dc:creator>
    <dc:date>2020-07-16T12:09:42Z</dc:date>
    <item>
      <title>How to transpose data, with the missing id/code?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-transpose-data-with-the-missing-id-code/m-p/669859#M36444</link>
      <description>&lt;P&gt;Hi, there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Can anyone please show me how to transpose data with missing ID /CODE? Please see the sample enclosed.&lt;/P&gt;&lt;P&gt;See the screenshot below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EllaXu_0-1594900442723.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47233i4E927AC564CD8AE4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EllaXu_0-1594900442723.png" alt="EllaXu_0-1594900442723.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A title="Transpose with missing ID/Code" href="C:\Users\22296171\Desktop" target="_self"&gt;C:\Users\22296171\Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 11:59:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-transpose-data-with-the-missing-id-code/m-p/669859#M36444</guid>
      <dc:creator>EllaXu</dc:creator>
      <dc:date>2020-07-16T11:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to transpose data, with the missing id/code?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-transpose-data-with-the-missing-id-code/m-p/669861#M36445</link>
      <description>We cannot transpose the missing values</description>
      <pubDate>Thu, 16 Jul 2020 12:09:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-transpose-data-with-the-missing-id-code/m-p/669861#M36445</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2020-07-16T12:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to transpose data, with the missing id/code?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-transpose-data-with-the-missing-id-code/m-p/669862#M36446</link>
      <description>Sorry I didn't describe the issue clearly. The variables are not lined up properly in the right columns(see the highlighted in yellow cells), due to the missing id/code, so the question is how can I fix the missing code or ID?</description>
      <pubDate>Thu, 16 Jul 2020 12:15:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-transpose-data-with-the-missing-id-code/m-p/669862#M36446</guid>
      <dc:creator>EllaXu</dc:creator>
      <dc:date>2020-07-16T12:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to transpose data, with the missing id/code?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-transpose-data-with-the-missing-id-code/m-p/669863#M36447</link>
      <description>&lt;P&gt;I can't open excel-files, so could you please post the data as data-step using datalines-statement? See &lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_blank"&gt;https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/&lt;/A&gt; for details.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 12:17:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-transpose-data-with-the-missing-id-code/m-p/669863#M36447</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-07-16T12:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to transpose data, with the missing id/code?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-transpose-data-with-the-missing-id-code/m-p/669869#M36448</link>
      <description>&lt;P&gt;Please post your dataset in a usable way (data step with datalines), and the code you used for the transpose.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I cleaned up your Excel file, and ran this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import
  datafile="/folders/myfolders/transpose1.xlsx"
  out=transpose1
  dbms=xlsx
  replace
;
run;

proc transpose data=transpose1 out=trans;
var year:;
by code notsorted;
id datatype;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;which worked for me.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 12:44:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-transpose-data-with-the-missing-id-code/m-p/669869#M36448</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-07-16T12:44:25Z</dc:date>
    </item>
  </channel>
</rss>

