<?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 tranpose data if the first words are the same in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-tranpose-data-if-the-first-words-are-the-same/m-p/879712#M43090</link>
    <description>&lt;P&gt;never heard of proc report. Can i use the data after in enterprise guide? To work with them after proc report? what is the base syntax pls?&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jun 2023 09:02:37 GMT</pubDate>
    <dc:creator>Pato485</dc:creator>
    <dc:date>2023-06-08T09:02:37Z</dc:date>
    <item>
      <title>how to tranpose data if the first words are the same</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-tranpose-data-if-the-first-words-are-the-same/m-p/879707#M43086</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how can i transpose data if i have transposed data which first few words are the same, and this method take just few words at the start but now thole field, i got error:&lt;/P&gt;&lt;P&gt;ERROR: The ID value "'Dávka pre prípad hospitalizácie'n" occurs twice in the same BY group.&lt;BR /&gt;NOTE: The above message was for the following BY group:&lt;BR /&gt;K_PART=17 C_PZ=0304626732&lt;/P&gt;&lt;P&gt;But there are not the same words:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pato485_0-1686213338841.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/84818iF8EED48CE55D72CB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pato485_0-1686213338841.png" alt="Pato485_0-1686213338841.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;There are more words like that, not the same, just the beggining of field is the same, and it just appear to be transposing it be few first letters in the field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way how to take whole name and transpose it with whole name in the field (in my case it is field description).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 08:37:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-tranpose-data-if-the-first-words-are-the-same/m-p/879707#M43086</guid>
      <dc:creator>Pato485</dc:creator>
      <dc:date>2023-06-08T08:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to tranpose data if the first words are the same</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-tranpose-data-if-the-first-words-are-the-same/m-p/879708#M43087</link>
      <description>&lt;P&gt;SAS variable names are limited to 32 characters, so your values cause a collision.&lt;/P&gt;
&lt;P&gt;What are you trying to achieve? If this is for reporting, PROC REPORT is the right tool.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 08:49:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-tranpose-data-if-the-first-words-are-the-same/m-p/879708#M43087</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-06-08T08:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to tranpose data if the first words are the same</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-tranpose-data-if-the-first-words-are-the-same/m-p/879709#M43088</link>
      <description>&lt;P&gt;i have to get all rows in description field to distinct columns... and if it is on the contract so there will be in field 1, so exampe&amp;nbsp;&lt;/P&gt;&lt;P&gt;Contract Mortgage Credit Card&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;something like that.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 08:53:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-tranpose-data-if-the-first-words-are-the-same/m-p/879709#M43088</guid>
      <dc:creator>Pato485</dc:creator>
      <dc:date>2023-06-08T08:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to tranpose data if the first words are the same</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-tranpose-data-if-the-first-words-are-the-same/m-p/879711#M43089</link>
      <description>&lt;P&gt;Is this for reporting purposes?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 08:59:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-tranpose-data-if-the-first-words-are-the-same/m-p/879711#M43089</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-06-08T08:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to tranpose data if the first words are the same</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-tranpose-data-if-the-first-words-are-the-same/m-p/879712#M43090</link>
      <description>&lt;P&gt;never heard of proc report. Can i use the data after in enterprise guide? To work with them after proc report? what is the base syntax pls?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 09:02:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-tranpose-data-if-the-first-words-are-the-same/m-p/879712#M43090</guid>
      <dc:creator>Pato485</dc:creator>
      <dc:date>2023-06-08T09:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to tranpose data if the first words are the same</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-tranpose-data-if-the-first-words-are-the-same/m-p/879713#M43091</link>
      <description>&lt;P&gt;"Working" with such variable names will be a catastrophic pain in the ass, and you should avoid it like hell.&lt;/P&gt;
&lt;P&gt;All processing is much better done from a "long" dataset layout. "Wide" is only good for reporting purposes, and needed for a very limited number of tasks (regression analysis among them). For the latter, simpler variable names should be introduced, and your complex strings used as labels.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC REPORT will look like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=your_dataset;
column k_part c_pz description,hooo;
define k_part / group;
define c_pz / group;
define description / "" across;
define hooo / "" analysis;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Jun 2023 09:43:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-tranpose-data-if-the-first-words-are-the-same/m-p/879713#M43091</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-06-08T09:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to tranpose data if the first words are the same</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-tranpose-data-if-the-first-words-are-the-same/m-p/879714#M43092</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/313523"&gt;@Pato485&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;i have to get all rows in description field to distinct columns... and if it is on the contract so there will be in field 1, so exampe&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Contract Mortgage Credit Card&lt;/P&gt;
&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;
&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;something like that.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;How does this apply to the text fields that you showed originally? Why would you want those text strings as a variable name? Please EXPLAIN further.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;SAS works best with long data sets, not wide data sets. Almost all SAS procedures expect long data sets, and wide data sets are much more difficult to work with.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 11:56:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-tranpose-data-if-the-first-words-are-the-same/m-p/879714#M43092</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-06-08T11:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to tranpose data if the first words are the same</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-tranpose-data-if-the-first-words-are-the-same/m-p/879745#M43093</link>
      <description>&lt;P&gt;You need to find (or create) another variable that you can use in the ID statement to set the new variable's NAME.&lt;/P&gt;
&lt;P&gt;You can use the IDLABEL statement to tell PROC TRANSPOSE to use that DESCRIPTION variable as the new variable's LABEL instead.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 12:36:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-tranpose-data-if-the-first-words-are-the-same/m-p/879745#M43093</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-06-08T12:36:00Z</dc:date>
    </item>
  </channel>
</rss>

