<?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: Facing an issue with transpose transformation in SAS DI 4.902 in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Facing-an-issue-with-transpose-transformation-in-SAS-DI-4-902/m-p/547572#M8400</link>
    <description>&lt;P&gt;Transpose is not an interactive procedure, so the quit statement is not needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And it is what the message says. Within a by group, each value for attribute must appear at most once.&lt;/P&gt;
&lt;P&gt;Try the following:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table counts as select *, count(*) as count
from test
group by CompanyId, Customer, Company, Attribute
having count &amp;gt; 1;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to detect duplicates&lt;/P&gt;</description>
    <pubDate>Mon, 01 Apr 2019 08:29:07 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2019-04-01T08:29:07Z</dc:date>
    <item>
      <title>Facing an issue with transpose transformation in SAS DI 4.902</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Facing-an-issue-with-transpose-transformation-in-SAS-DI-4-902/m-p/547567#M8398</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;Hope All doing Good !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here My query is regarding transpose transformation in&amp;nbsp;SAS DI 4.902(9.4 M3).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am facing issues with duplicate ID values and some times some other warning also I am getting as below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is my code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC TRANSPOSE DATA=WORK.Test&lt;BR /&gt;OUT=W2B107UV&lt;BR /&gt;NAME=Source&lt;BR /&gt;LET&lt;BR /&gt;;&lt;BR /&gt;BY CompanyId Customer&amp;nbsp; &amp;nbsp;Company;&lt;BR /&gt;ID Name;&lt;BR /&gt;VAR Value;&lt;/P&gt;&lt;P&gt;RUN; QUIT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the same in User written and transpose transformation of DI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Waning/Error1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ID value Datetime occurs twice within the same by group.&lt;/P&gt;&lt;P&gt;ID value links occurs twice within the same by group.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;So on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Warning/ Error 2:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Unable to execute query: SQL passthru expression contained these errors: ERROR: Column Source could not be found in the table/view identified with the correlation name W7FYG6DF.... ERROR: Column Datetime could not be found in the table/view identified with the correlation name W7FYG6DF.... ERROR: Column tage3 could not be found in the table/view identified with the correlation name W7FYG6DF.... ERROR: Column title could not be found in the table/view identified with the correlation name W7FYG6DF.... ERROR: Column mainu_Link could not be found in the table/view identified with the correlation name W7FYG6DF.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sample data of Mine:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;CompanyId&amp;nbsp; Customer&amp;nbsp; &amp;nbsp;Company&amp;nbsp; &amp;nbsp;Attribute&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Value&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;08768&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 507689&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;AB&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;datetime&amp;nbsp; &amp;nbsp;2018-08-12&lt;BR /&gt;971463&amp;nbsp; &amp;nbsp; &amp;nbsp;791328&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; BU&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; link&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; https://xxxxx/xxxxxxxx&lt;BR /&gt;971463&amp;nbsp; &amp;nbsp; &amp;nbsp;7913289&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AB&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; title&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Pgigljjguyhihfkjghjh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please Someone could help Asap..&lt;/P&gt;&lt;P&gt;Earlier response is appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many Thanks in Advance!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 07:43:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Facing-an-issue-with-transpose-transformation-in-SAS-DI-4-902/m-p/547567#M8398</guid>
      <dc:creator>Lakshmi_G90</dc:creator>
      <dc:date>2019-04-01T07:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Facing an issue with transpose transformation in SAS DI 4.902</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Facing-an-issue-with-transpose-transformation-in-SAS-DI-4-902/m-p/547568#M8399</link>
      <description>&lt;P&gt;Sorry, Small correction in the code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC TRANSPOSE DATA=WORK.Test&lt;BR /&gt;OUT=W2B107UV&lt;BR /&gt;NAME=Source&lt;BR /&gt;LET&lt;BR /&gt;;&lt;BR /&gt;BY CompanyId Customer&amp;nbsp; &amp;nbsp;Company;&lt;BR /&gt;ID Attribute;&lt;BR /&gt;VAR Value;&lt;/P&gt;&lt;P&gt;RUN; QUIT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 07:50:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Facing-an-issue-with-transpose-transformation-in-SAS-DI-4-902/m-p/547568#M8399</guid>
      <dc:creator>Lakshmi_G90</dc:creator>
      <dc:date>2019-04-01T07:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Facing an issue with transpose transformation in SAS DI 4.902</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Facing-an-issue-with-transpose-transformation-in-SAS-DI-4-902/m-p/547572#M8400</link>
      <description>&lt;P&gt;Transpose is not an interactive procedure, so the quit statement is not needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And it is what the message says. Within a by group, each value for attribute must appear at most once.&lt;/P&gt;
&lt;P&gt;Try the following:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table counts as select *, count(*) as count
from test
group by CompanyId, Customer, Company, Attribute
having count &amp;gt; 1;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to detect duplicates&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 08:29:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Facing-an-issue-with-transpose-transformation-in-SAS-DI-4-902/m-p/547572#M8400</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-04-01T08:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Facing an issue with transpose transformation in SAS DI 4.902</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Facing-an-issue-with-transpose-transformation-in-SAS-DI-4-902/m-p/547573#M8401</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;,Many Thanks for your response.&lt;/P&gt;&lt;P&gt;I have tried&amp;nbsp;the same in&amp;nbsp;data step block by&amp;nbsp;using&amp;nbsp;first.variable statement. Yes, Attribute values occure morethan one time in a group by columns sequence.&lt;/P&gt;&lt;P&gt;But here&amp;nbsp;I need to transpose the data without lossing the records.&lt;/P&gt;&lt;P&gt;Is there a way to get the result..?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Lakshmi.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 08:39:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Facing-an-issue-with-transpose-transformation-in-SAS-DI-4-902/m-p/547573#M8401</guid>
      <dc:creator>Lakshmi_G90</dc:creator>
      <dc:date>2019-04-01T08:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Facing an issue with transpose transformation in SAS DI 4.902</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Facing-an-issue-with-transpose-transformation-in-SAS-DI-4-902/m-p/547575#M8402</link>
      <description>&lt;P&gt;Basic answer: you can't with the current data structure. You may have to use one or more additional columns to get groups where each attribute value occurs only once. It may be that you have to create such a column.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 08:54:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Facing-an-issue-with-transpose-transformation-in-SAS-DI-4-902/m-p/547575#M8402</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-04-01T08:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Facing an issue with transpose transformation in SAS DI 4.902</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Facing-an-issue-with-transpose-transformation-in-SAS-DI-4-902/m-p/547588#M8404</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;Thank you so much. Now I understood How to go further to fulfil My requirement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 10:36:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Facing-an-issue-with-transpose-transformation-in-SAS-DI-4-902/m-p/547588#M8404</guid>
      <dc:creator>Lakshmi_G90</dc:creator>
      <dc:date>2019-04-01T10:36:07Z</dc:date>
    </item>
  </channel>
</rss>

