<?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 merge and transpose data table in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-merge-and-transpose-data-table/m-p/559752#M156365</link>
    <description>&lt;P&gt;what is your item_id is it not unique?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 17 May 2019 18:37:54 GMT</pubDate>
    <dc:creator>VDD</dc:creator>
    <dc:date>2019-05-17T18:37:54Z</dc:date>
    <item>
      <title>how to merge and transpose data table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-merge-and-transpose-data-table/m-p/559735#M156360</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;wanted to create a constant unique variable n&amp;nbsp; for each&amp;nbsp; ITEM_ID and after that transposing&amp;nbsp;DATA&amp;nbsp;table for having &amp;nbsp;each ITEM_ID with&amp;nbsp; multiple date&lt;/P&gt;&lt;P&gt;see attached&amp;nbsp; table&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 484px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/29600i016B9091817C99C0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 17:47:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-merge-and-transpose-data-table/m-p/559735#M156360</guid>
      <dc:creator>Kadia</dc:creator>
      <dc:date>2019-05-17T17:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to merge and transpose data table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-merge-and-transpose-data-table/m-p/559739#M156361</link>
      <description>&lt;P&gt;here is a link to some examples of proc transpose.&lt;/P&gt;
&lt;P&gt;&lt;FONT style="background-color: #ffffff;"&gt;&lt;A href="https://stats.idre.ucla.edu/sas/modules/how-to-reshape-data-long-to-wide-using-proc-transpose/" target="_blank"&gt;https://stats.idre.ucla.edu/sas/modules/how-to-reshape-data-long-to-wide-using-proc-transpose/&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 17:53:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-merge-and-transpose-data-table/m-p/559739#M156361</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2019-05-17T17:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to merge and transpose data table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-merge-and-transpose-data-table/m-p/559742#M156362</link>
      <description>&lt;P&gt;Thanks for reply but i need to know how to create unique id then doing the transpose&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 17:57:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-merge-and-transpose-data-table/m-p/559742#M156362</guid>
      <dc:creator>Kadia</dc:creator>
      <dc:date>2019-05-17T17:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to merge and transpose data table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-merge-and-transpose-data-table/m-p/559752#M156365</link>
      <description>&lt;P&gt;what is your item_id is it not unique?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 18:37:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-merge-and-transpose-data-table/m-p/559752#M156365</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2019-05-17T18:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to merge and transpose data table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-merge-and-transpose-data-table/m-p/559764#M156370</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/273366"&gt;@Kadia&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks for reply but i need to know how to create unique id then doing the transpose&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is real hard to write code against pictures.&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 19:11:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-merge-and-transpose-data-table/m-p/559764#M156370</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-05-17T19:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to merge and transpose data table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-merge-and-transpose-data-table/m-p/559792#M156381</link>
      <description>&lt;P&gt;It is but as it's not integer it can group correctly&lt;/P&gt;&lt;P&gt;i have this error message ERROR: Data set WORK.QUERY_FOR_ITEM_SMRY_0001 is not sorted in ascending sequence. The current BY group has ITEM_ID =&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7262314317311375 and the next BY group has ITEM_ID = 0104617002383014.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 21:17:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-merge-and-transpose-data-table/m-p/559792#M156381</guid>
      <dc:creator>Kadia</dc:creator>
      <dc:date>2019-05-17T21:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to merge and transpose data table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-merge-and-transpose-data-table/m-p/559796#M156382</link>
      <description>&lt;P&gt;preform a proc sort on the information prior to the transpose.&lt;/P&gt;
&lt;P&gt;give more information so that we can assist rather than guess.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 21:35:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-merge-and-transpose-data-table/m-p/559796#M156382</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2019-05-17T21:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to merge and transpose data table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-merge-and-transpose-data-table/m-p/560280#M156636</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/273366"&gt;@Kadia&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;It is but as it's not integer it can group correctly&lt;/P&gt;
&lt;P&gt;i have this error message ERROR: Data set WORK.QUERY_FOR_ITEM_SMRY_0001 is not sorted in ascending sequence. The current BY group has ITEM_ID =&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7262314317311375 and the next BY group has ITEM_ID = 0104617002383014.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Show entire data step or procedure call along with the error. Copy from the log and paste into a code box opened using the forum's {I} or "running man" icon. The message windows will reformat text reducing the value of the diagnostics that SAS sometimes supplies with errors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But that is a pretty clear error. You need to sort the data before what ever you were doing. The BY statement in the sort should look the same as the By statement is whatever threw the error.&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 20:27:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-merge-and-transpose-data-table/m-p/560280#M156636</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-05-20T20:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to merge and transpose data table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-merge-and-transpose-data-table/m-p/560284#M156638</link>
      <description>&lt;P&gt;Where are you getting those numbers? There is a limit to the number of digits of precision that SAS can store in a number.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;507   data _null_;
508   x=constant('exactint');
509   put x= comma30.;
510   run;

x=9,007,199,254,740,992
&lt;/PRE&gt;</description>
      <pubDate>Mon, 20 May 2019 20:50:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-merge-and-transpose-data-table/m-p/560284#M156638</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-05-20T20:50:52Z</dc:date>
    </item>
  </channel>
</rss>

