<?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 idlabel in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-transpose-idlabel/m-p/25352#M5730</link>
    <description>Rick,&lt;BR /&gt;
&lt;BR /&gt;
Try this&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
data one;&lt;BR /&gt;
set one;&lt;BR /&gt;
time2 = left(put(time,best12.));&lt;BR /&gt;
run; &lt;BR /&gt;
&lt;BR /&gt;
proc sort data = one;   &lt;BR /&gt;
by subject period;	&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc transpose data=one &lt;BR /&gt;
out=two(drop=_NAME_) prefix=HR;	&lt;BR /&gt;
by subject period;	&lt;BR /&gt;
id timep;	&lt;BR /&gt;
idlabel time2;&lt;BR /&gt;
run;&lt;BR /&gt;
proc print data=two label noobs;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
GL.</description>
    <pubDate>Fri, 21 May 2010 14:47:23 GMT</pubDate>
    <dc:creator>sfsdtegsdsdgdffhgfh</dc:creator>
    <dc:date>2010-05-21T14:47:23Z</dc:date>
    <item>
      <title>proc transpose idlabel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-transpose-idlabel/m-p/25351#M5729</link>
      <description>Hi all,&lt;BR /&gt;
&lt;BR /&gt;
I am having some trouble with using the idlabel statement with a numeric value.  When I run the following code I end up with labels with leading blank spaces.&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
data one;&lt;BR /&gt;
input Subject Period Timep Time Val;&lt;BR /&gt;
datalines;&lt;BR /&gt;
1 1 1 0 1&lt;BR /&gt;
1 1 2 .5 3&lt;BR /&gt;
1 1 3 1 5&lt;BR /&gt;
1 1 4 1.5 7&lt;BR /&gt;
1 1 5 2 9&lt;BR /&gt;
1 2 1 0 2&lt;BR /&gt;
1 2 2 .5 4&lt;BR /&gt;
1 2 3 1 6&lt;BR /&gt;
1 2 4 1.5 8&lt;BR /&gt;
1 2 5 2 10&lt;BR /&gt;
2 1 1 0 1&lt;BR /&gt;
2 1 2 .5 3&lt;BR /&gt;
2 1 3 1 5&lt;BR /&gt;
2 1 4 1.5 7&lt;BR /&gt;
2 1 5 2 9&lt;BR /&gt;
2 2 1 0 2&lt;BR /&gt;
2 2 2 .5 4&lt;BR /&gt;
2 2 3 1 6&lt;BR /&gt;
2 2 4 1.5 8&lt;BR /&gt;
2 2 5 2 10&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc transpose data=one out=two(drop=_NAME_) prefix=HR;&lt;BR /&gt;
	by subject period;&lt;BR /&gt;
	id timep;&lt;BR /&gt;
	idlabel time;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc print data=two label noobs;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
I have also tried making time a character variable of length 3 but I still end up with leading blanks.&lt;BR /&gt;
&lt;BR /&gt;
Any tips would be appreciated.</description>
      <pubDate>Thu, 20 May 2010 20:37:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-transpose-idlabel/m-p/25351#M5729</guid>
      <dc:creator>RickM</dc:creator>
      <dc:date>2010-05-20T20:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: proc transpose idlabel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-transpose-idlabel/m-p/25352#M5730</link>
      <description>Rick,&lt;BR /&gt;
&lt;BR /&gt;
Try this&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
data one;&lt;BR /&gt;
set one;&lt;BR /&gt;
time2 = left(put(time,best12.));&lt;BR /&gt;
run; &lt;BR /&gt;
&lt;BR /&gt;
proc sort data = one;   &lt;BR /&gt;
by subject period;	&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc transpose data=one &lt;BR /&gt;
out=two(drop=_NAME_) prefix=HR;	&lt;BR /&gt;
by subject period;	&lt;BR /&gt;
id timep;	&lt;BR /&gt;
idlabel time2;&lt;BR /&gt;
run;&lt;BR /&gt;
proc print data=two label noobs;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
GL.</description>
      <pubDate>Fri, 21 May 2010 14:47:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-transpose-idlabel/m-p/25352#M5730</guid>
      <dc:creator>sfsdtegsdsdgdffhgfh</dc:creator>
      <dc:date>2010-05-21T14:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: proc transpose idlabel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-transpose-idlabel/m-p/25353#M5731</link>
      <description>Thanks!&lt;BR /&gt;
&lt;BR /&gt;
That works perfectly.</description>
      <pubDate>Fri, 21 May 2010 15:49:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-transpose-idlabel/m-p/25353#M5731</guid>
      <dc:creator>RickM</dc:creator>
      <dc:date>2010-05-21T15:49:23Z</dc:date>
    </item>
  </channel>
</rss>

