<?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 how to Transpose the data with dates and numbers in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-Transpose-the-data-with-dates-and-numbers/m-p/916128#M360907</link>
    <description>&lt;P&gt;I want to transpose the data and how I have and want. Is it possible? dates/time are in datetime16. format in have datasets. I really appreciate any help you can provide.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASuserlot_0-1707933608354.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/93724i46417A936D474C32/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASuserlot_0-1707933608354.png" alt="SASuserlot_0-1707933608354.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Feb 2024 18:02:49 GMT</pubDate>
    <dc:creator>SASuserlot</dc:creator>
    <dc:date>2024-02-14T18:02:49Z</dc:date>
    <item>
      <title>how to Transpose the data with dates and numbers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-Transpose-the-data-with-dates-and-numbers/m-p/916128#M360907</link>
      <description>&lt;P&gt;I want to transpose the data and how I have and want. Is it possible? dates/time are in datetime16. format in have datasets. I really appreciate any help you can provide.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASuserlot_0-1707933608354.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/93724i46417A936D474C32/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASuserlot_0-1707933608354.png" alt="SASuserlot_0-1707933608354.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 18:02:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-Transpose-the-data-with-dates-and-numbers/m-p/916128#M360907</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2024-02-14T18:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to Transpose the data with dates and numbers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-Transpose-the-data-with-dates-and-numbers/m-p/916136#M360911</link>
      <description>&lt;P&gt;From now on, even in this small example, would you please provide data not as screen captures but as text in the form of working SAS data step code? (&lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_self"&gt;examples and instructions&lt;/A&gt;) Thank you. We cannot work with data in a screen capture.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the idea that ought to get what you want on your data. I use a different data set because I cannot work with data in a screen capture.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc transpose data=sashelp.class(obs=1) out=want prefix=all;
    by name;
    var height weight age;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Adding: it makes sense (to me) to have dates in a column. It does not make sense (to me) to also have the value of COUNT in the same column as date, and so I would suggest you re-think the layout that your want.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 18:55:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-Transpose-the-data-with-dates-and-numbers/m-p/916136#M360911</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-02-14T18:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to Transpose the data with dates and numbers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-Transpose-the-data-with-dates-and-numbers/m-p/916209#M360918</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp; My apologies; my sample code has not shown up here for some reason. Maybe I did not paste it correctly and just submitted a query. I realized that with your responses. Thanks for helping out. I resolved the issue, Just doing two transposes, one for 'dates' and one for 'count'', then appended.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 21:45:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-Transpose-the-data-with-dates-and-numbers/m-p/916209#M360918</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2024-02-14T21:45:17Z</dc:date>
    </item>
  </channel>
</rss>

