<?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 with count in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-transpose-with-count/m-p/315814#M68932</link>
    <description>&lt;P&gt;Proc tabulate or proc report will create this kind of report table :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input Date :ddmmyy. Id $ Issue $&amp;amp;;
format date yymmdd10.;
datalines;
01/01/16 A1 Code A
01/02/16 B3 Code A
01/03/16 D2 Code D
01/05/16 W3 Code T
;

proc tabulate data=have format=7.0;
class date id issue;
table date*id,Issue=""*n="";
run;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 01 Dec 2016 05:00:17 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2016-12-01T05:00:17Z</dc:date>
    <item>
      <title>Proc transpose with count</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-transpose-with-count/m-p/315762#M68925</link>
      <description>I have a data pull that looks&lt;BR /&gt;&lt;BR /&gt;Date. Id. Issue&lt;BR /&gt;01/01/16. A1. Code A&lt;BR /&gt;01/02/16. B3. Code A&lt;BR /&gt;01/03/16. D2. Code D.&lt;BR /&gt;01/05/16. W3. Code T&lt;BR /&gt;&lt;BR /&gt;I'm looking for telling proc transpose look like this&lt;BR /&gt;&lt;BR /&gt;Code A. Code D Code T&lt;BR /&gt;O1/01/16. A1. 1&lt;BR /&gt;01/02/16. B3. 1&lt;BR /&gt;01/03/16. D2. 1&lt;BR /&gt;01/05/16. W3. 1</description>
      <pubDate>Thu, 01 Dec 2016 02:43:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-transpose-with-count/m-p/315762#M68925</guid>
      <dc:creator>Gil_</dc:creator>
      <dc:date>2016-12-01T02:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Proc transpose with count</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-transpose-with-count/m-p/315763#M68926</link>
      <description>Sorry it didn't save like i wanted to show i need issue to be on top like a pivot table with the count of occurrence. With id and date on left side going up and down ...</description>
      <pubDate>Thu, 01 Dec 2016 02:48:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-transpose-with-count/m-p/315763#M68926</guid>
      <dc:creator>Gil_</dc:creator>
      <dc:date>2016-12-01T02:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Proc transpose with count</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-transpose-with-count/m-p/315778#M68928</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/117620"&gt;@Gil_&lt;/a&gt; wrote:&lt;BR /&gt;Sorry it didn't save like i wanted to show i need issue to be on top like a pivot table with the count of occurrence. With id and date on left side going up and down ...&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yeah, I'm not seeing what you want.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want a pivot table type report look at proc tabulate. If you want a dataset with indicators (?) look at creating indicator variables.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/iml/2016/02/22/create-dummy-variables-in-sas.html" target="_blank"&gt;http://blogs.sas.com/content/iml/2016/02/22/create-dummy-variables-in-sas.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 03:30:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-transpose-with-count/m-p/315778#M68928</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-12-01T03:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Proc transpose with count</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-transpose-with-count/m-p/315814#M68932</link>
      <description>&lt;P&gt;Proc tabulate or proc report will create this kind of report table :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input Date :ddmmyy. Id $ Issue $&amp;amp;;
format date yymmdd10.;
datalines;
01/01/16 A1 Code A
01/02/16 B3 Code A
01/03/16 D2 Code D
01/05/16 W3 Code T
;

proc tabulate data=have format=7.0;
class date id issue;
table date*id,Issue=""*n="";
run;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Dec 2016 05:00:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-transpose-with-count/m-p/315814#M68932</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-12-01T05:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Proc transpose with count</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-transpose-with-count/m-p/317137#M69393</link>
      <description>Thanks PGStats</description>
      <pubDate>Tue, 06 Dec 2016 21:06:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-transpose-with-count/m-p/317137#M69393</guid>
      <dc:creator>Gil_</dc:creator>
      <dc:date>2016-12-06T21:06:37Z</dc:date>
    </item>
  </channel>
</rss>

