<?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--One row per variable, no row summaries in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-One-row-per-variable-no-row-summaries/m-p/674223#M202997</link>
    <description>&lt;P&gt;Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&lt;/P&gt;&lt;P&gt;I wasn't aware of stackods. That's a nice one for the repertoire.&lt;/P&gt;&lt;P&gt;I added, as you suggested:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print noobs data=work.summary;
format Min--Mean time9.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 03 Aug 2020 23:11:59 GMT</pubDate>
    <dc:creator>JacquesR</dc:creator>
    <dc:date>2020-08-03T23:11:59Z</dc:date>
    <item>
      <title>PROC REPORT--One row per variable, no row summaries</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-One-row-per-variable-no-row-summaries/m-p/674045#M202906</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;I have a number of time variables (all formatted time9.), and I would like the get a summary of them.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC MEANS 
    DATA=Test
    N MIN Q1 MEDIAN Q3 MAX MEAN ; 
    VAR TimeIngestionToNAC TimeIngestionToMeth TimeIngestionToAntidote TimeAdmissionToNAC TimeAdmissionToMeth TimeAdmissionToAntidote ;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But that does not show the time-formatted values in the columns.&lt;/P&gt;&lt;P&gt;How do I get the same layout in PROC REPORT?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC REPORT 
    DATA=Test;
    COLUMN (MIN Q1 MEDIAN Q3 MAX MEAN), TimeIngestionToNAC ...?;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It seems to me as if I am missing something incredibly simple as I read the documentation, because I feel it should be easy to get this, but I don't see how.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 04:19:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-One-row-per-variable-no-row-summaries/m-p/674045#M202906</guid>
      <dc:creator>JacquesR</dc:creator>
      <dc:date>2020-08-03T04:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT--One row per variable, no row summaries</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-One-row-per-variable-no-row-summaries/m-p/674049#M202910</link>
      <description>&lt;P&gt;Do you run both steps against table TEST?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 05:22:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-One-row-per-variable-no-row-summaries/m-p/674049#M202910</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-08-03T05:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT--One row per variable, no row summaries</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-One-row-per-variable-no-row-summaries/m-p/674053#M202912</link>
      <description>&lt;P&gt;Like this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc summary data=SASHELP.CLASS min max mean ;
   var AGE WEIGHT HEIGHT; 
   output out=SUM; 
run;
                        
proc transpose data=SUM out=TRANSP; 
  id _STAT_; 
run;

proc print; 
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 05:39:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-One-row-per-variable-no-row-summaries/m-p/674053#M202912</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-08-03T05:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT--One row per variable, no row summaries</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-One-row-per-variable-no-row-summaries/m-p/674069#M202921</link>
      <description>&lt;P&gt;In Report you don't, because report doesn't like to stack variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try&lt;/P&gt;
&lt;PRE&gt;PROC MEANS 
    DATA=Test
    N MIN Q1 MEDIAN Q3 MAX MEAN stackods ; 
    VAR TimeIngestionToNAC TimeIngestionToMeth TimeIngestionToAntidote TimeAdmissionToNAC TimeAdmissionToMeth TimeAdmissionToAntidote ;
   ods output summary= work.summary;
RUN;&lt;/PRE&gt;
&lt;P&gt;Which will place the output into a data set that is structured similar to the proc means results.&lt;/P&gt;
&lt;P&gt;Then use Proc Print with appropriate format for the statistics.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 08:19:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-One-row-per-variable-no-row-summaries/m-p/674069#M202921</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-08-03T08:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT--One row per variable, no row summaries</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-One-row-per-variable-no-row-summaries/m-p/674223#M202997</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&lt;/P&gt;&lt;P&gt;I wasn't aware of stackods. That's a nice one for the repertoire.&lt;/P&gt;&lt;P&gt;I added, as you suggested:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print noobs data=work.summary;
format Min--Mean time9.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 03 Aug 2020 23:11:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-One-row-per-variable-no-row-summaries/m-p/674223#M202997</guid>
      <dc:creator>JacquesR</dc:creator>
      <dc:date>2020-08-03T23:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT--One row per variable, no row summaries</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-One-row-per-variable-no-row-summaries/m-p/674224#M202998</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I realised I could get the same effect like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate
    data=Test; 
    var TimeIngestionToNAC TimeIngestionToMeth TimeIngestionToAntidote 
          TimeAdmissionToNAC TimeAdmissionToMeth TimeAdmissionToAntidote ;
    table TimeIngestionToNAC TimeIngestionToMeth TimeIngestionToAntidote 
            TimeAdmissionToNAC TimeAdmissionToMeth TimeAdmissionToAntidote 
	,N (MIN Q1 MEDIAN Q3 MAX MEAN)*f=time9. ;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Which does get it done in one step.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 23:23:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-One-row-per-variable-no-row-summaries/m-p/674224#M202998</guid>
      <dc:creator>JacquesR</dc:creator>
      <dc:date>2020-08-03T23:23:15Z</dc:date>
    </item>
  </channel>
</rss>

