<?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 note clarification in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report-note-clarification/m-p/229277#M54381</link>
    <description>&lt;P&gt;Have a look at the doc for proc report, specifically&amp;nbsp;&lt;A href="https://support.sas.com/documentation/cdl/en/proc/67916/HTML/default/viewer.htm#n0jann0dticnpbn1woe95yuphoaz.htm" target="_self"&gt;Four Ways to Reference Report Items in a Compute Block&lt;/A&gt;. Since EXPENSES is a numeric variable, its default usage is ANALYSIS with statistic SUM, so you need write it like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data sample;
  input flightid $ Expenses;
  datalines;
IA03400 89155
;
run;

proc report data=sample nowd;
  column flightid expenses abh;
  define abh / computed;

  compute abh;
    abh = expenses.sum * 100;
  endcomp;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Bruno&lt;/P&gt;</description>
    <pubDate>Fri, 09 Oct 2015 13:12:43 GMT</pubDate>
    <dc:creator>BrunoMueller</dc:creator>
    <dc:date>2015-10-09T13:12:43Z</dc:date>
    <item>
      <title>Proc report note clarification</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report-note-clarification/m-p/229265#M54379</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am currently starter in using the SAS Proc report procedure, Could you please look in the below note and help me out on what exactly it issue is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My data&amp;amp;colon;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data sample:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; input flightid $ Expenses;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; datalines;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; IA03400 89155&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My proc report code is as below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc report data=sample.expenses nowd;&lt;BR /&gt;&amp;nbsp; column flightid expenses abh;&lt;BR /&gt;&amp;nbsp; define abh / computed ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; compute abh;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; abh=expenses*100;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; endcomp;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With the above code I am having a note in the log as "Variable expenses is uninitialized." &lt;/P&gt;
&lt;P&gt;Is this something that we cannot refer the variable which is already existing in the dataset for compute.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2015 12:36:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-report-note-clarification/m-p/229265#M54379</guid>
      <dc:creator>Maddy4u</dc:creator>
      <dc:date>2015-10-09T12:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report note clarification</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report-note-clarification/m-p/229277#M54381</link>
      <description>&lt;P&gt;Have a look at the doc for proc report, specifically&amp;nbsp;&lt;A href="https://support.sas.com/documentation/cdl/en/proc/67916/HTML/default/viewer.htm#n0jann0dticnpbn1woe95yuphoaz.htm" target="_self"&gt;Four Ways to Reference Report Items in a Compute Block&lt;/A&gt;. Since EXPENSES is a numeric variable, its default usage is ANALYSIS with statistic SUM, so you need write it like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data sample;
  input flightid $ Expenses;
  datalines;
IA03400 89155
;
run;

proc report data=sample nowd;
  column flightid expenses abh;
  define abh / computed;

  compute abh;
    abh = expenses.sum * 100;
  endcomp;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Bruno&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2015 13:12:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-report-note-clarification/m-p/229277#M54381</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2015-10-09T13:12:43Z</dc:date>
    </item>
  </channel>
</rss>

