<?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 proc transpose wide to long- _label_ column in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-transpose-wide-to-long-label-column/m-p/875926#M346093</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am using proc transpose to change data structure from wide to long.&lt;/P&gt;
&lt;P&gt;It is working 100%&amp;nbsp; and I also get a column called&amp;nbsp;_LABEL_.&lt;/P&gt;
&lt;P&gt;In this column (_LABEL_)&amp;nbsp; I get the label values .&lt;/P&gt;
&lt;P&gt;In my real code which contain many columns (150 columns)&amp;nbsp; I perform also same proc transpose code&amp;nbsp; but I don't get the _Label_ column.&lt;/P&gt;
&lt;P&gt;May anyone explain why it can happen?&lt;/P&gt;
&lt;P&gt;As I said I run same code (proc tranpose) but dont get _label_ column&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
label month='MM-YYYY'  X='weight' y='height' Z='direction' R='revenue';
input month $ X Y Z R;
cards;
03-2023 10 20 30 40
04-2023 20 10 30 10
05-2023 40 30 20 20
;
Run;

proc transpose data=have out=want;
var  _all_;
run; 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 16 May 2023 06:43:31 GMT</pubDate>
    <dc:creator>Ronein</dc:creator>
    <dc:date>2023-05-16T06:43:31Z</dc:date>
    <item>
      <title>proc transpose wide to long- _label_ column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-transpose-wide-to-long-label-column/m-p/875926#M346093</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am using proc transpose to change data structure from wide to long.&lt;/P&gt;
&lt;P&gt;It is working 100%&amp;nbsp; and I also get a column called&amp;nbsp;_LABEL_.&lt;/P&gt;
&lt;P&gt;In this column (_LABEL_)&amp;nbsp; I get the label values .&lt;/P&gt;
&lt;P&gt;In my real code which contain many columns (150 columns)&amp;nbsp; I perform also same proc transpose code&amp;nbsp; but I don't get the _Label_ column.&lt;/P&gt;
&lt;P&gt;May anyone explain why it can happen?&lt;/P&gt;
&lt;P&gt;As I said I run same code (proc tranpose) but dont get _label_ column&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
label month='MM-YYYY'  X='weight' y='height' Z='direction' R='revenue';
input month $ X Y Z R;
cards;
03-2023 10 20 30 40
04-2023 20 10 30 10
05-2023 40 30 20 20
;
Run;

proc transpose data=have out=want;
var  _all_;
run; 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 May 2023 06:43:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-transpose-wide-to-long-label-column/m-p/875926#M346093</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2023-05-16T06:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: proc transpose wide to long- _label_ column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-transpose-wide-to-long-label-column/m-p/875929#M346096</link>
      <description>&lt;P&gt;Does your "real" data have any variables with labels?&lt;/P&gt;
&lt;P&gt;Run proc contents on your dataset an in the section variables see if there are any labels.&lt;/P&gt;
&lt;P&gt;If there is no label in the data proc transpose won't produce _label_ variable.&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 07:09:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-transpose-wide-to-long-label-column/m-p/875929#M346096</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2023-05-16T07:09:38Z</dc:date>
    </item>
  </channel>
</rss>

