<?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: Transpose in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Transpose/m-p/883938#M349209</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*You want a dataset or report ?*/
data have;
infile cards;
input SR ID S S_G TS TS_G;
cards;
1 19 1 5 7 2
2 20 5 8 6 1
3 21 5 7 2 1
;

proc odstable data=have;
column  SR ID (S TS)*(S_G TS_G);
define S;
header='nw1';
end;
define TS;
header='nw2';
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1688730109014.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/85648i597FD62A75194712/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1688730109014.png" alt="Ksharp_0-1688730109014.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jul 2023 11:41:34 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2023-07-07T11:41:34Z</dc:date>
    <item>
      <title>Transpose</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transpose/m-p/883889#M349190</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;hi
i have 
SR	ID	S	S_G	TS	TS_G
1	19	1	5	7	2
2	20	5	8	6	1
3	21	5	7	2	1


i want 
SR	ID	nw1	nw2
1	19	1	7
		5	2
2	20	5	6
		8	1
3	21	5	7
		7	2
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Jul 2023 05:46:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transpose/m-p/883889#M349190</guid>
      <dc:creator>Daily1</dc:creator>
      <dc:date>2023-07-07T05:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transpose/m-p/883911#M349195</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set have;
nw1 = s;
nw2 = ts;
output;
nw1 = s_g;
nw2 = ts_g;
output;
keep sr id nw1 nw2;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Jul 2023 09:31:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transpose/m-p/883911#M349195</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-07-07T09:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transpose/m-p/883938#M349209</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*You want a dataset or report ?*/
data have;
infile cards;
input SR ID S S_G TS TS_G;
cards;
1 19 1 5 7 2
2 20 5 8 6 1
3 21 5 7 2 1
;

proc odstable data=have;
column  SR ID (S TS)*(S_G TS_G);
define S;
header='nw1';
end;
define TS;
header='nw2';
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1688730109014.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/85648i597FD62A75194712/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1688730109014.png" alt="Ksharp_0-1688730109014.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 11:41:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transpose/m-p/883938#M349209</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-07-07T11:41:34Z</dc:date>
    </item>
  </channel>
</rss>

