<?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: freq for each day and reports located side by side in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/freq-for-each-day-and-reports-located-side-by-side/m-p/719093#M222608</link>
    <description>&lt;P&gt;Check next code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data rawtbl;
input ID date : date9. x1 $ x2  $ x3 $ ;
format date ddmmyy10.;
cards;
1 01jan2021 a a b
2 01jan2021 b c b
3 01jan2021 c a b
4 01jan2021 a c c
5 02jan2021 b b b
6 02jan2021 a c b
7 03jan2021 c a b
8 03jan2021 a b b
9 03jan2021 a a c
;
run;

proc format lib=work;
  value $catg
   'a' = 'x_a'
   'b' = 'x_b'
   'c' = 'x_c'
; run;
data to_rep;
 set rawtbl;
     length category $3;
     category = put(x1,$catg.); field='x1'; freq=1; output;
     category = put(x2,$catg.); field='x2'; freq=1; output;
     category = put(x3,$catg.); field='x3'; freq=1; output;
     drop x1 - x3;
run;
proc tabulate data=to_rep;
  class date field category;
  var freq;
  table field*category,
        date*freq*sum=' ';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 13 Feb 2021 11:32:07 GMT</pubDate>
    <dc:creator>Shmuel</dc:creator>
    <dc:date>2021-02-13T11:32:07Z</dc:date>
    <item>
      <title>freq for each day and reports located side by side</title>
      <link>https://communities.sas.com/t5/SAS-Programming/freq-for-each-day-and-reports-located-side-by-side/m-p/719076#M222594</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;What is the way to create such report when for each day there is freq report by 3 fields: X1,X2,X3.&lt;/P&gt;
&lt;P&gt;For each day we need to see the fields names and categories names and need to have a black column as a gap between days.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ronein_2-1613197709321.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54683iA88CC9A70C66D96F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ronein_2-1613197709321.png" alt="Ronein_2-1613197709321.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data rawtbl;
input ID date : date9. x1 $ x2  $ x3 $ ;
cards;
1 01jan2021 a a b
2 01jan2021 b c b
3 01jan2021 c a b
4 01jan2021 a c c
5 02an2021 b b b
6 02an2021 a c b
7 03jan2021 c a b
8 03jan2021 a b b
9 03jan2021 a a c
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Feb 2021 06:29:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/freq-for-each-day-and-reports-located-side-by-side/m-p/719076#M222594</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2021-02-13T06:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: freq for each day and reports located side by side</title>
      <link>https://communities.sas.com/t5/SAS-Programming/freq-for-each-day-and-reports-located-side-by-side/m-p/719093#M222608</link>
      <description>&lt;P&gt;Check next code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data rawtbl;
input ID date : date9. x1 $ x2  $ x3 $ ;
format date ddmmyy10.;
cards;
1 01jan2021 a a b
2 01jan2021 b c b
3 01jan2021 c a b
4 01jan2021 a c c
5 02jan2021 b b b
6 02jan2021 a c b
7 03jan2021 c a b
8 03jan2021 a b b
9 03jan2021 a a c
;
run;

proc format lib=work;
  value $catg
   'a' = 'x_a'
   'b' = 'x_b'
   'c' = 'x_c'
; run;
data to_rep;
 set rawtbl;
     length category $3;
     category = put(x1,$catg.); field='x1'; freq=1; output;
     category = put(x2,$catg.); field='x2'; freq=1; output;
     category = put(x3,$catg.); field='x3'; freq=1; output;
     drop x1 - x3;
run;
proc tabulate data=to_rep;
  class date field category;
  var freq;
  table field*category,
        date*freq*sum=' ';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 13 Feb 2021 11:32:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/freq-for-each-day-and-reports-located-side-by-side/m-p/719093#M222608</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2021-02-13T11:32:07Z</dc:date>
    </item>
  </channel>
</rss>

