<?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: changind the columns appearance in proc report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/changind-the-columns-appearance-in-proc-report/m-p/448854#M20719</link>
    <description>Hi:&lt;BR /&gt;  PROC REPORT will not restructure your data as you envision. You will need to pre-process your data so that, for example, you have multiple rows in the structure you want, instead of just one row of multiple variables.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
    <pubDate>Tue, 27 Mar 2018 03:42:10 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2018-03-27T03:42:10Z</dc:date>
    <item>
      <title>changind the columns appearance in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/changind-the-columns-appearance-in-proc-report/m-p/448701#M20710</link>
      <description>&lt;P&gt;I'm trying to change the appearance for the columns in my report&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I used this code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc report data=table4;&lt;BR /&gt;column Readable_Time_Points case_assigned Time_points_read Time_points_complete off_study off_study_total Time_Points_Pending ;&lt;BR /&gt;define Readable_Time_Points/ "Readable Time Points";&lt;BR /&gt;define case_assigned/ "Cases Assigned";&lt;BR /&gt;define Time_Points_Pending/ "Time Points Pending";&lt;BR /&gt;define off_study/ "Off_study cases requiring adjudication";&lt;BR /&gt;define off_study_total/ "Total cases completed(off_study)";&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and this is my current result&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Readable Time Points&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;Cases Assigned&lt;/TD&gt;&lt;TD&gt;Time_points_read&lt;/TD&gt;&lt;TD&gt;Time_points_complete&lt;/TD&gt;&lt;TD&gt;Off_study cases requiring adjudication&lt;/TD&gt;&lt;TD&gt;Total cases completed(off_study)&lt;/TD&gt;&lt;TD&gt;Time Points Pending&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;29&lt;/TD&gt;&lt;TD&gt;300&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;and this is the result that I aim&amp;nbsp;for or something simillar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Time Points Read/Complete: (Complete reads/Contracted)&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;29&lt;/TD&gt;&lt;TD&gt;300&lt;/TD&gt;&lt;TD&gt;9.7%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Readable Time Points:&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Cases Assigned:&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Time Points Pending&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Off-study cases requiring adjudication:&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Total cases completed (off- study):&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Mon, 26 Mar 2018 16:33:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/changind-the-columns-appearance-in-proc-report/m-p/448701#M20710</guid>
      <dc:creator>mona4u</dc:creator>
      <dc:date>2018-03-26T16:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: changind the columns appearance in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/changind-the-columns-appearance-in-proc-report/m-p/448771#M20714</link>
      <description>&lt;P&gt;Proc report doesn't like to mix values within a single column unless it is a summary of the column. It might be possible to generate some of that output with Proc tabulate as it will allow mixing columns a bit but does get picky about what needs to be included to do summaries and it appears that your desired result may not be practical (without data it is hard to tell).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you provide example input data in the form of a data step you might get a tested solution.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 18:19:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/changind-the-columns-appearance-in-proc-report/m-p/448771#M20714</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-03-26T18:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: changind the columns appearance in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/changind-the-columns-appearance-in-proc-report/m-p/448778#M20715</link>
      <description>&lt;P&gt;You could re-arrange the data in a data step before PROC REPORT, which would then allow PROC REPORT to do different things than it normally does. So the only thing PROC REPORT would do is to create a table, it would not be doing the analysis of the data.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Nevertheless, this would take a bit of work in the data step to get PROC REPORT to produce the final report as you want it.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 18:44:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/changind-the-columns-appearance-in-proc-report/m-p/448778#M20715</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-03-26T18:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: changind the columns appearance in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/changind-the-columns-appearance-in-proc-report/m-p/448800#M20716</link>
      <description>&lt;P&gt;I already analysed my data before proc report but I want to change the report criteria that what I want&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 20:19:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/changind-the-columns-appearance-in-proc-report/m-p/448800#M20716</guid>
      <dc:creator>mona4u</dc:creator>
      <dc:date>2018-03-26T20:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: changind the columns appearance in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/changind-the-columns-appearance-in-proc-report/m-p/448854#M20719</link>
      <description>Hi:&lt;BR /&gt;  PROC REPORT will not restructure your data as you envision. You will need to pre-process your data so that, for example, you have multiple rows in the structure you want, instead of just one row of multiple variables.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Tue, 27 Mar 2018 03:42:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/changind-the-columns-appearance-in-proc-report/m-p/448854#M20719</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-03-27T03:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: changind the columns appearance in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/changind-the-columns-appearance-in-proc-report/m-p/448943#M20722</link>
      <description>&lt;P&gt;Since you haven't shown us your data, we can only guess at what you have, and so I would say you could create code that looks&amp;nbsp;&lt;EM&gt;something like this &lt;/EM&gt;(not a complete example)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data table5;
    set table4;
    length type $ 16;
    value=readable_time_points;
    type='COL1';
    output;
    value=cases_assigned;
    type='COL1';
    output;
    value=time_points_read;
    type='COL1';
    output;
    value=time_points_complete;
    type='COL2';
    ouptut;
run;

proc report data=table5;
    columns value type;
    define type/across;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Mar 2018 13:41:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/changind-the-columns-appearance-in-proc-report/m-p/448943#M20722</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-03-27T13:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: changind the columns appearance in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/changind-the-columns-appearance-in-proc-report/m-p/448976#M20724</link>
      <description>&lt;P&gt;That's the result that I got from your code and it is not correct&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;type&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;value&lt;/TD&gt;&lt;TD&gt;COL1&lt;/TD&gt;&lt;TD&gt;COL2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;338&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 27 Mar 2018 13:59:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/changind-the-columns-appearance-in-proc-report/m-p/448976#M20724</guid>
      <dc:creator>mona4u</dc:creator>
      <dc:date>2018-03-27T13:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: changind the columns appearance in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/changind-the-columns-appearance-in-proc-report/m-p/448978#M20725</link>
      <description>&lt;P&gt;That's exactly what I want to do but I don't know how to do it&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2018 14:02:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/changind-the-columns-appearance-in-proc-report/m-p/448978#M20725</guid>
      <dc:creator>mona4u</dc:creator>
      <dc:date>2018-03-27T14:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: changind the columns appearance in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/changind-the-columns-appearance-in-proc-report/m-p/448982#M20726</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a mistake in what I wrote, which should say&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data table5;
    set table4;
    length type $ 16 label $ 24;
    label='readable_time_points';
    type='COL1';
    value=readable_time_points;
    output;
    label='cases_assigned';
    type='COL1';
    value=cases_assigned;
    output;
    label='time_points_read_complete';
    type='COL1';
    value=time_points_read;
    output;
    label='time_points_read_complete';
    type='COL2'
    value=time_points_complete;
    ouptut;
run;

proc report data=table5;
    columns label type,value;
    define type/across;
    define value/analysis sum;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I have not much to go on, as you haven't shared a reasonable subset of your data so we can see what it looks like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, you show us a reasonable portion of your data in table4.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2018 14:11:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/changind-the-columns-appearance-in-proc-report/m-p/448982#M20726</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-03-27T14:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: changind the columns appearance in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/changind-the-columns-appearance-in-proc-report/m-p/449023#M20727</link>
      <description>&lt;P&gt;Here is a very old school approach:&lt;/P&gt;
&lt;PRE&gt;data garbage;
    input 
      Readable_Time_Points 
      case_assigned 
      Time_points_read 
      Time_points_complete 
      off_study 
      off_study_total 
      Time_Points_Pending 
    ;
datalines;
9 7 29 300 0 0 9
;
run;

data _null_;
   set garbage;
   file print;
   rate= Time_points_read/Time_points_complete;
   put @1 "Time Points Read/Complete: (Complete reads/Contracted)" 
       @56 Time_points_read
       @60 Time_points_complete
       @65 rate percent7.1
   ;
   put @1 "Readable Time Points:" 
       @56 Readable_Time_Points
   ;
   put @1 "Cases Assigned:"
       @56 case_assigned
   ;
   put @1 "Time Points Pending"
       @56 Time_Points_Pending
   ;
   put @1 "Off-study cases requiring adjudication:"
       @56 off_study
   ;
   put @1 "Total cases completed (off- study):"
       @56  off_study_total
   ;
run;    
&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Mar 2018 15:37:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/changind-the-columns-appearance-in-proc-report/m-p/449023#M20727</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-03-27T15:37:32Z</dc:date>
    </item>
  </channel>
</rss>

