<?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 getting values as 1 while doing across in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-report-getting-values-as-1-while-doing-across/m-p/409894#M100178</link>
    <description>&lt;P&gt;You might want to try&lt;/P&gt;
&lt;PRE&gt;column rpt_varn rpt_var  actarm rpt_cat, count dummy ;&lt;/PRE&gt;
&lt;P&gt;The , after rpt_cat says that you want to summarize count for each level of rpt_cat.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you didn't actually have any values associated with rep_cat&amp;nbsp;it was, I believe, defaulting to an N statistic as the variable rpt_cat is character and that is the default statistic for character (hard to sum character variables...)&lt;/P&gt;</description>
    <pubDate>Thu, 02 Nov 2017 15:52:31 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-11-02T15:52:31Z</dc:date>
    <item>
      <title>proc report getting values as 1 while doing across</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-getting-values-as-1-while-doing-across/m-p/409787#M100134</link>
      <description>&lt;P&gt;I am using proc report and using across and analysis and while getting the final output i get values as 1 for all which should not be the case. any help where i am going wrong?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sample data attached&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc report data = inc out=ngf nowd split = "¤" headline missing contents = "";
          column rpt_varn rpt_var  actarm rpt_cat count dummy ;
          define actarm / group style(header)={just=left cellwidth=1.5cm} style(column)=IdColIndent2{asis=on} "Description of Actual Arm";
          define rpt_cat / across order=internal style(header)={just=center } style(column)=IdColIndent2{asis=on};
          define rpt_varn / group order=internal noprint;
          define rpt_var / group style={just=left cellwidth=3.5cm} " ";
          define count /analysis  sum style={just=right cellwidth=1.57142857142856cm} " ";
          define dummy /noprint;
          compute before;
          line @1 ' ';
          endcomp;
          compute after rpt_varn;
          line ' ';
          endcomp;
run;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 11:51:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-getting-values-as-1-while-doing-across/m-p/409787#M100134</guid>
      <dc:creator>vraj1</dc:creator>
      <dc:date>2017-11-02T11:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: proc report getting values as 1 while doing across</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-getting-values-as-1-while-doing-across/m-p/409791#M100135</link>
      <description>&lt;P&gt;It sounds like it is being rounded, do you have values of 0.xx?&amp;nbsp; Apply a format to the one in question.&amp;nbsp; Or do your calculations in a datastep and keep the proc report simple - this is what I do, don't like doing data manipulation in an output procedure.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 12:02:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-getting-values-as-1-while-doing-across/m-p/409791#M100135</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-11-02T12:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: proc report getting values as 1 while doing across</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-getting-values-as-1-while-doing-across/m-p/409800#M100139</link>
      <description>&lt;P&gt;It is not rounded as i attached the final dataset and it has values which are different&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 12:38:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-getting-values-as-1-while-doing-across/m-p/409800#M100139</guid>
      <dc:creator>vraj1</dc:creator>
      <dc:date>2017-11-02T12:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: proc report getting values as 1 while doing across</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-getting-values-as-1-while-doing-across/m-p/409804#M100142</link>
      <description>&lt;P&gt;I didn't say the data was rounded, as you are doing calculations in the proc report the data within the proc report may get rounded.&amp;nbsp; One very good reason not to do calculations and data processing in an output procedure.&amp;nbsp; Put out= onto your proc report step and see the data being used there, if that looks ok, then check your output destination - Excel for instance is a constent offender on "features" which destroy your data - for instance, rounding and truncation.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 12:48:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-getting-values-as-1-while-doing-across/m-p/409804#M100142</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-11-02T12:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: proc report getting values as 1 while doing across</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-getting-values-as-1-while-doing-across/m-p/409830#M100152</link>
      <description>&lt;P&gt;I have to say that specifying a cell width of&lt;/P&gt;
&lt;P&gt;1.57142857142856cm&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Appears to be a tad bit of overkill. You are trying to control width of something to about the width of a single ink molecule and significantly less than the width of single pixels on a monitor even a very high resolution one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you see any actual difference in the output if you use 1.57cm?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 14:17:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-getting-values-as-1-while-doing-across/m-p/409830#M100152</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-11-02T14:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: proc report getting values as 1 while doing across</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-getting-values-as-1-while-doing-across/m-p/409832#M100154</link>
      <description>&lt;P&gt;I still get the same result if i make it to 1.57cm. somehow i get all 1's and wondering from where it is evolving&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 14:22:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-getting-values-as-1-while-doing-across/m-p/409832#M100154</guid>
      <dc:creator>vraj1</dc:creator>
      <dc:date>2017-11-02T14:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: proc report getting values as 1 while doing across</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-getting-values-as-1-while-doing-across/m-p/409894#M100178</link>
      <description>&lt;P&gt;You might want to try&lt;/P&gt;
&lt;PRE&gt;column rpt_varn rpt_var  actarm rpt_cat, count dummy ;&lt;/PRE&gt;
&lt;P&gt;The , after rpt_cat says that you want to summarize count for each level of rpt_cat.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you didn't actually have any values associated with rep_cat&amp;nbsp;it was, I believe, defaulting to an N statistic as the variable rpt_cat is character and that is the default statistic for character (hard to sum character variables...)&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 15:52:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-getting-values-as-1-while-doing-across/m-p/409894#M100178</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-11-02T15:52:31Z</dc:date>
    </item>
  </channel>
</rss>

