<?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 report in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-report/m-p/618818#M181581</link>
    <description>&lt;P&gt;Thank you very much.&lt;/P&gt;
&lt;P&gt;However, the location of fields should be different.&lt;/P&gt;
&lt;P&gt;In rows need to have groups (3 rows&amp;nbsp; for categories: a,b,c)&lt;/P&gt;
&lt;P&gt;In columns need to have date and under it name of day&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jan 2020 10:35:07 GMT</pubDate>
    <dc:creator>Ronein</dc:creator>
    <dc:date>2020-01-21T10:35:07Z</dc:date>
    <item>
      <title>proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report/m-p/618804#M181575</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;I want to create a proc report.&lt;BR /&gt;In x-axis there will be one categorical var "group"&lt;BR /&gt;In Y-axis there will be two&amp;nbsp; categorical variables&amp;nbsp; "date1" "NameDay".&lt;BR /&gt;in the cells of the table there will be sum of Y&lt;/P&gt;
&lt;P&gt;Please note that in each column I want to have both date and name of day .&lt;BR /&gt;I don't want that the name of the day will be on multiple cells.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data RawTbl;
informat date1 date9.;
format date1 date9.;
input ID date1 Y group $;
NameDay = put(date1,dowName. -l) ;
cards;
1 '15Jan2019'd 10 a
2 '17Jan2019'd 20 a
3 '19Jan2019'd 30 a
4 '21Jan2019'd 40 b
5 '23Jan2019'd 50 b
6 '18Jan2019'd 60 b
7 '17Jan2019'd 70 c
8 '08Jan2019'd 80 c
9 '04Jan2019'd 90 c
;
Run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Jan 2020 09:23:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report/m-p/618804#M181575</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2020-01-21T09:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report/m-p/618808#M181576</link>
      <description>&lt;P&gt;Do you mean something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc transpose data=rawtbl out=trans;
by date1 notsorted nameday notsorted;
id group;
var y;
run;

proc report data=trans;
column date1 nameday a b c;
define date1 /group;
define nameday /group;
define a /analysis;
define b /analysis;
define c /analysis;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Jan 2020 09:39:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report/m-p/618808#M181576</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-01-21T09:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report/m-p/618810#M181577</link>
      <description>&lt;P&gt;When for same date there are multiple customers who belong to same group then it give an error&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; Data RawTbl;
informat date1 date9.;
format date1 date9.;
input ID date1 Y group $;
NameDay = put(date1,dowName. -l) ;
cards;
1 '17Jan2019'd 10 a
2 '17Jan2019'd 20 a
3 '19Jan2019'd 30 a
4 '21Jan2019'd 40 b
5 '23Jan2019'd 50 b
6 '18Jan2019'd 60 b
7 '17Jan2019'd 70 a
8 '08Jan2019'd 80 c
9 '04Jan2019'd 90 c
;
Run;

proc transpose data=rawtbl out=trans;
by date1 notsorted nameday notsorted;
id group;
var y;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Jan 2020 09:55:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report/m-p/618810#M181577</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2020-01-21T09:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report/m-p/618811#M181578</link>
      <description>&lt;P&gt;In x-asix (rows) need to have groups (a,b,c)&lt;/P&gt;
&lt;P&gt;In y-axis need to have date and under it name of day&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 09:57:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report/m-p/618811#M181578</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2020-01-21T09:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report/m-p/618818#M181581</link>
      <description>&lt;P&gt;Thank you very much.&lt;/P&gt;
&lt;P&gt;However, the location of fields should be different.&lt;/P&gt;
&lt;P&gt;In rows need to have groups (3 rows&amp;nbsp; for categories: a,b,c)&lt;/P&gt;
&lt;P&gt;In columns need to have date and under it name of day&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 10:35:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report/m-p/618818#M181581</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2020-01-21T10:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report/m-p/618828#M181586</link>
      <description>&lt;P&gt;Please supply a visual example of the expected report you want to have out of your second example dataset.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 11:34:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report/m-p/618828#M181586</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-01-21T11:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report/m-p/618836#M181588</link>
      <description>&lt;P&gt;Please see my new post .thanks&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 12:02:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report/m-p/618836#M181588</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2020-01-21T12:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report/m-p/618837#M181589</link>
      <description>&lt;P&gt;I don't see a new post, please provide a link.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see a similar old post of yours, which does NOT provide the requested &lt;STRONG&gt;VISUAL&lt;/STRONG&gt; example of what you want.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 12:10:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report/m-p/618837#M181589</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-01-21T12:10:17Z</dc:date>
    </item>
  </channel>
</rss>

