<?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: proc transpose: adjusting the length of the _name_ column in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-transpose-adjusting-the-length-of-the-name-column/m-p/928820#M83460</link>
    <description>&lt;P&gt;Can you provide an example data set that exhibits this behavior?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that your code as posted will not run as the semicolon between the Proc statement and the BY statement is missing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/401244"&gt;@MarkusWeick&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am using proc transpose to change the table from wide to long. But in the column "old-column" the old some variable names are truncated. What can I do, to get them in the original length?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc transpose 	data=have
            name =old_column
			out=want
			by column_to_keep;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Markus&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 17 May 2024 13:59:40 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2024-05-17T13:59:40Z</dc:date>
    <item>
      <title>proc transpose: adjusting the length of the _name_ column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-transpose-adjusting-the-length-of-the-name-column/m-p/928819#M83459</link>
      <description>&lt;P&gt;I am using proc transpose to change the table from wide to long. But in the column "old-column" the old some variable names are truncated. What can I do, to get them in the original length?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc transpose 	data=have
            name =old_column
			out=want
			by column_to_keep;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Markus&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2024 13:42:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-transpose-adjusting-the-length-of-the-name-column/m-p/928819#M83459</guid>
      <dc:creator>MarkusWeick</dc:creator>
      <dc:date>2024-05-17T13:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: proc transpose: adjusting the length of the _name_ column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-transpose-adjusting-the-length-of-the-name-column/m-p/928820#M83460</link>
      <description>&lt;P&gt;Can you provide an example data set that exhibits this behavior?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that your code as posted will not run as the semicolon between the Proc statement and the BY statement is missing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/401244"&gt;@MarkusWeick&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am using proc transpose to change the table from wide to long. But in the column "old-column" the old some variable names are truncated. What can I do, to get them in the original length?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc transpose 	data=have
            name =old_column
			out=want
			by column_to_keep;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Markus&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2024 13:59:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-transpose-adjusting-the-length-of-the-name-column/m-p/928820#M83460</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-05-17T13:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: proc transpose: adjusting the length of the _name_ column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-transpose-adjusting-the-length-of-the-name-column/m-p/928823#M83461</link>
      <description>&lt;P&gt;It appears the default is $8 or the length of the longest name greater than $8&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=0 keep=sex) out=want;
   var _all_;
   run;
proc contents varnum;
   run;
proc transpose data=sashelp.class(obs=0 rename=(name=name5678910)) out=want2;
   var _all_;
   run;
proc contents varnum;
   run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 306px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/96602iE35E7EE61A111989/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 311px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/96603i52574014521946CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2024 14:15:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-transpose-adjusting-the-length-of-the-name-column/m-p/928823#M83461</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2024-05-17T14:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: proc transpose: adjusting the length of the _name_ column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-transpose-adjusting-the-length-of-the-name-column/m-p/928825#M83462</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;, Thanks, and sorry for my badly prepared question. Next time I will do an example set before asking. (I found that the truncating was done later in proc append with forve option).&lt;/P&gt;
&lt;P&gt;Thanks again,&lt;/P&gt;
&lt;P&gt;Markus&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2024 14:27:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-transpose-adjusting-the-length-of-the-name-column/m-p/928825#M83462</guid>
      <dc:creator>MarkusWeick</dc:creator>
      <dc:date>2024-05-17T14:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: proc transpose: adjusting the length of the _name_ column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-transpose-adjusting-the-length-of-the-name-column/m-p/928829#M83463</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/401244"&gt;@MarkusWeick&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;, Thanks, and sorry for my badly prepared question. Next time I will do an example set before asking. (I found that the truncating was done later in proc append with forve option).&lt;/P&gt;
&lt;P&gt;Thanks again,&lt;/P&gt;
&lt;P&gt;Markus&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I suspected it might be something along those lines. Proc Transpose is pretty mature and would be surprised to see that as the cause of the _name_ truncation.&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2024 15:15:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-transpose-adjusting-the-length-of-the-name-column/m-p/928829#M83463</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-05-17T15:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: proc transpose: adjusting the length of the _name_ column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-transpose-adjusting-the-length-of-the-name-column/m-p/928941#M83464</link>
      <description>&lt;P&gt;The Proc Transpose procedure takes care of the naming lengths and works very well.&lt;/P&gt;
&lt;P&gt;A real problem is using the &lt;STRONG&gt;&lt;EM&gt;force&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;option (in combination with &lt;STRONG&gt;&lt;EM&gt;nowarn&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;option) in the Proc Append procedure.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 May 2024 09:19:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-transpose-adjusting-the-length-of-the-name-column/m-p/928941#M83464</guid>
      <dc:creator>PaulCanals</dc:creator>
      <dc:date>2024-05-19T09:19:52Z</dc:date>
    </item>
  </channel>
</rss>

