<?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: Summary format report ideas in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Summary-format-report-ideas/m-p/656549#M196872</link>
    <description>Are you referring to style templates or templates for PROC REPORT? Or something else?&lt;BR /&gt;&lt;BR /&gt;Is ODS EXCEL not an option either?</description>
    <pubDate>Wed, 10 Jun 2020 20:21:54 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2020-06-10T20:21:54Z</dc:date>
    <item>
      <title>Summary format report ideas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Summary-format-report-ideas/m-p/656545#M196870</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I had asked a question about indenting using proc tabulate in my last post and i am using the same data here. I am trying to get some formatted templates that you might have used for exporting results to excel. All ideas are welcome. Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data testing;&lt;BR /&gt;input Name $ County $ MaxRun MinRun RUNS FIRSTD LASTD TIME Reduce $ Increase $;&lt;BR /&gt;datalines;&lt;BR /&gt;A X 5 2 4 130 135 122 No Yes&lt;BR /&gt;A X 5 2 4 870 885 122 No Yes&lt;BR /&gt;B Y 7 1 7 660 610 220 Yes No&lt;BR /&gt;B Y 7 1 7 660 610 220 Yes No&lt;BR /&gt;B Z 7 1 7 660 610 220 Yes No&lt;BR /&gt;C Z 3 1 5 485 430 220 Yes No&lt;BR /&gt;C X 4 1 4 195 190 220 Yes No&lt;BR /&gt;C X 4 1 4 195 190 220 Yes No&lt;BR /&gt;D Y 5 1 5 575 485 106 Yes No&lt;BR /&gt;D Y 5 1 5 800 795 106 Yes No&lt;BR /&gt;D Z 6 3 3 103 106 210 No Yes&lt;BR /&gt;A Z 6 1 6 590 585 210 Yes No&lt;BR /&gt;A X 9 1 9 835 870 210 No Yes&lt;BR /&gt;B X 9 1 9 835 870 210 No Yes&lt;BR /&gt;C Y 2 2 1 165 165 620 No No&lt;BR /&gt;C Y 1 3 9 112 535 234 Yes No&lt;BR /&gt;C Z 1 3 9 112 535 234 Yes No&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;/*Summary for quantitative variables*/&lt;BR /&gt;ODS TAGSETS.EXCELXP&lt;BR /&gt;file="path\check info.xml"&lt;BR /&gt;STYLE=statistical&lt;BR /&gt;OPTIONS (embedded_titles='yes' embedded_footnotes='yes' FitToPage = 'yes'&lt;BR /&gt;sheet_name="Quantitative" Orientation = 'landscape');&lt;BR /&gt;title "Quant Table";&lt;BR /&gt;proc tabulate data= Testing format=comma11.2;&lt;BR /&gt;CLASS county;&lt;BR /&gt;var MaxRun MinRun RUNS FIRSTD LASTD TIME;&lt;BR /&gt;table County * (MaxRun='Maximum Runs' MinRun='Minimum Runs' RUNS='RUNS' FIRSTD='1st' LASTD='Lst' TIME='TT'),(N mean*f=9.1 median*f=9.1 std*f=9.2)/rts=25 INDENT=4;&lt;BR /&gt;keylabel ALL = 'Total'&lt;BR /&gt;mean = 'Mean'&lt;BR /&gt;median = 'Median'&lt;BR /&gt;std = 'SD';&lt;BR /&gt;run;&lt;BR /&gt;/*Summary for categorical variables*/&lt;BR /&gt;STYLE=statistical&lt;BR /&gt;OPTIONS (embedded_titles='yes' embedded_footnotes='yes' FitToPage = 'yes'&lt;BR /&gt;sheet_name="Categorical" Orientation = 'landscape');&lt;BR /&gt;title "Categorical Table";&lt;BR /&gt;proc tabulate data= testing NOSEPS format=comma11.2;&lt;BR /&gt;class Reduce Increase/ missing;&lt;BR /&gt;table (Reduce='' Increase=''), (all pctn)/rts=25 INDENT=4;&lt;BR /&gt;keylabel&lt;BR /&gt;pctn = '%';&lt;BR /&gt;run;&lt;BR /&gt;ods tagsets.ExcelXP close;&lt;BR /&gt;ods html close;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 20:05:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Summary-format-report-ideas/m-p/656545#M196870</guid>
      <dc:creator>rajd1</dc:creator>
      <dc:date>2020-06-10T20:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Summary format report ideas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Summary-format-report-ideas/m-p/656549#M196872</link>
      <description>Are you referring to style templates or templates for PROC REPORT? Or something else?&lt;BR /&gt;&lt;BR /&gt;Is ODS EXCEL not an option either?</description>
      <pubDate>Wed, 10 Jun 2020 20:21:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Summary-format-report-ideas/m-p/656549#M196872</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-06-10T20:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Summary format report ideas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Summary-format-report-ideas/m-p/656550#M196873</link>
      <description>Yes ODS EXCEL is definitely another option. Yes to similar templates in PROC REPORT as well.&lt;BR /&gt;Similar templates in PROC tabulate will also be helpful.</description>
      <pubDate>Wed, 10 Jun 2020 20:24:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Summary-format-report-ideas/m-p/656550#M196873</guid>
      <dc:creator>rajd1</dc:creator>
      <dc:date>2020-06-10T20:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Summary format report ideas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Summary-format-report-ideas/m-p/656562#M196880</link>
      <description>&lt;P&gt;I'm not sure if this would be helpful for you or not, but I have a macro dedicated to summarizing different types of data and outputting to different locations (like ODS EXCEL).&amp;nbsp; There is an article here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Demographic-Table-and-Subgroup-Summary-Macro-TABLEN/ta-p/634030" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/Demographic-Table-and-Subgroup-Summary-Macro-TABLEN/ta-p/634030&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I ran the following on your example data set and got the attached EXCEL file.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
%tablen(data=testing, by=county, showpval=0,
    var=maxrun minrun runs firstd lastd time reduce increase,type=1 1 1 1 1 1 2 2,
    shading=2,outdoc=~/ibm/test.xlsx,destination=excel);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Jun 2020 20:56:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Summary-format-report-ideas/m-p/656562#M196880</guid>
      <dc:creator>JeffMeyers</dc:creator>
      <dc:date>2020-06-10T20:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Summary format report ideas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Summary-format-report-ideas/m-p/656566#M196882</link>
      <description>I literally downloaded your Macro an hour ago and was going to explore it! This is absolutely great because formatting such tables takes time and automation is the way to go!&lt;BR /&gt;On this post, i was looking more like custom formats. Thanks again!</description>
      <pubDate>Wed, 10 Jun 2020 21:01:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Summary-format-report-ideas/m-p/656566#M196882</guid>
      <dc:creator>rajd1</dc:creator>
      <dc:date>2020-06-10T21:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Summary format report ideas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Summary-format-report-ideas/m-p/656585#M196900</link>
      <description>Creating Complex Reports paper by Cynthia Zender is old but a good reference to review first if you're just starting in SAS. Of course, you should explore the different default styles as well. &lt;BR /&gt;&lt;BR /&gt;Art's book on Proc Report is also a good resource. For specifics that you need search on here for examples ie 'proc report traffic lighting' will give you examples on conditionally applying banded colours and such.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Jun 2020 21:49:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Summary-format-report-ideas/m-p/656585#M196900</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-06-10T21:49:34Z</dc:date>
    </item>
  </channel>
</rss>

