<?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 Create a Column Heading from Each Distinct Value &amp;amp; then Transpose Data. in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-a-Column-Heading-from-Each-Distinct-Value-amp-then/m-p/289699#M19786</link>
    <description>&lt;P&gt;I apologize in advance, because I doubt that this screenshot is the most helpful format, &amp;nbsp;but I don't know how to post a table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I'd like to do is go from the dataset on the left to the one on the right, but, as I'm just beyond a beginner in SAS, I don't have any idea how to do it. &amp;nbsp;Any feedback would be appreciated, including feedback about how to post the data from this screenshot in a more user friendly fashion. &amp;nbsp;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4441i543B9BE807B9CBB6/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="SAS_PIC.png" title="SAS_PIC.png" /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Aug 2016 03:01:52 GMT</pubDate>
    <dc:creator>acemanhattan</dc:creator>
    <dc:date>2016-08-05T03:01:52Z</dc:date>
    <item>
      <title>Create a Column Heading from Each Distinct Value &amp; then Transpose Data.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-a-Column-Heading-from-Each-Distinct-Value-amp-then/m-p/289699#M19786</link>
      <description>&lt;P&gt;I apologize in advance, because I doubt that this screenshot is the most helpful format, &amp;nbsp;but I don't know how to post a table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I'd like to do is go from the dataset on the left to the one on the right, but, as I'm just beyond a beginner in SAS, I don't have any idea how to do it. &amp;nbsp;Any feedback would be appreciated, including feedback about how to post the data from this screenshot in a more user friendly fashion. &amp;nbsp;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4441i543B9BE807B9CBB6/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="SAS_PIC.png" title="SAS_PIC.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2016 03:01:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-a-Column-Heading-from-Each-Distinct-Value-amp-then/m-p/289699#M19786</guid>
      <dc:creator>acemanhattan</dc:creator>
      <dc:date>2016-08-05T03:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Column Heading from Each Distinct Value &amp; then Transpose Data.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-a-Column-Heading-from-Each-Distinct-Value-amp-then/m-p/289701#M19787</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data emp_sal;
input Empid $ year salary;
datalines;
Emp1 1996 2596
Emp1 1997 2600
Emp2 1997 8596
Emp2 1998 8700
Emp3 1997 6200
Emp3 1998 6500
Emp3 1999 6800
;

proc transpose data=emp_sal out=transpose_emp_sal;
by Empid;
ID year;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have given the most simple proc transpose without using much option.&lt;/P&gt;&lt;P&gt;Read about proc transpose and exlore.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding posting question, &amp;nbsp;Any way that can be understood, it is nice that you have shown what is your input dataset and what do you wnat as output.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2016 03:28:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-a-Column-Heading-from-Each-Distinct-Value-amp-then/m-p/289701#M19787</guid>
      <dc:creator>RahulG</dc:creator>
      <dc:date>2016-08-05T03:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Column Heading from Each Distinct Value &amp; then Transpose Data.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-a-Column-Heading-from-Each-Distinct-Value-amp-then/m-p/289702#M19788</link>
      <description>&lt;P&gt;Look into Transpose, in EG I believe it's a task.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your coding it's proc transpose.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to get better answers including code, it helps to post data as a data step.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At aminimum paste it in as text rather than an image.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2016 03:29:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-a-Column-Heading-from-Each-Distinct-Value-amp-then/m-p/289702#M19788</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-05T03:29:07Z</dc:date>
    </item>
  </channel>
</rss>

