<?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: Preventing Duplication of Summary Data in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Preventing-Duplication-of-Summary-Data/m-p/230460#M14526</link>
    <description>Hi:&lt;BR /&gt;  I don't see how your program is producing the output you posted. You have over 10 items listed in the column statement and you only show 3 items in your "what's wrong" example. You don't show your ODS destination or explain whether you are using LISTING or RTF or PDF or HTML and your code.&lt;BR /&gt; &lt;BR /&gt;However, to help you debug, since you did not post any data that anyone could test with, my recommendation would be to alter your line statement like this: &lt;BR /&gt;line  ...... keep everything the same ..... '~1x';&lt;BR /&gt;&lt;BR /&gt;add a '~1x', '~2x','~3x' at the end of every LINE statement so you can figure out which line is the culprit.&lt;BR /&gt;&lt;BR /&gt;My guess is that you have too many COMPUTE AFTER blocks or you are not setting some value to 0 correctly or you don't need the RBREAK AFTER.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
    <pubDate>Sun, 18 Oct 2015 04:29:40 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2015-10-18T04:29:40Z</dc:date>
    <item>
      <title>Preventing Duplication of Summary Data</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Preventing-Duplication-of-Summary-Data/m-p/230424#M14525</link>
      <description>&lt;P&gt;I'm new to Proc Report and ODS processing. How to I prevent duplication of data given the below code. The line in &lt;FONT color="#ff00ff"&gt;RED &lt;FONT color="#000000"&gt;shouldn't print.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Physician&amp;nbsp; Component&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;63&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 63&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;Welcome to your Bible&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count&amp;nbsp; 104&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 104&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;Welcome to your Bible&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count&amp;nbsp; 104&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 104&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc report data=vbb_rpt out=vbb_out split='*' missing nowd;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;column incent_plan_effdt incentive_plan_name incentive_component_name last_name first_name subscriber_id &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; subscriber_and_sfx relationship_code reward_earndt reward_type reward_amount &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; incent_comp_achieve_earndt incent_comp_achieve_createdt elig_ruleset eff_cnt plan_cnt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;define incent_plan_effdt / group 'Incentive Plan Eff Dt' width=22;&lt;BR /&gt;&amp;nbsp;define incentive_plan_name / group 'Incentive Plan Name' width=19; &lt;BR /&gt;&amp;nbsp;define incentive_component_name / group 'Incentive Component Name' width=25;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;define last_name / order order=internal 'Last Name' width=9;&lt;BR /&gt;&amp;nbsp;define first_name / order order=internal 'First Name' width=10;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; define subscriber_id / group 'Subscriber Id' width=13;&lt;BR /&gt;&amp;nbsp;define subscriber_and_sfx&amp;nbsp; / group 'Member Id' width=14;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; define relationship_code / order order=data 'Relationship Code' width=17;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; define reward_earndt / order order=data'Reward Earned Dt' width=16;&lt;BR /&gt;&amp;nbsp;define reward_type / order order=data 'Reward Type' width=11;&lt;BR /&gt;&amp;nbsp;define reward_amount / order order=data 'Reward Amt' width=10 format=dollar5.2; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; define incent_comp_achieve_earndt / order order=data 'Incentive Component*Achievement Earn Dt' width=40;&lt;BR /&gt;&amp;nbsp;define incent_comp_achieve_createdt / order order=data 'Incentive Component*Achievement Created Dt' width=42;&lt;BR /&gt;&amp;nbsp;define elig_ruleset / order order=data 'Eligibility Classification' width=11;&lt;BR /&gt;&amp;nbsp;define eff_cnt / analysis sum noprint;&lt;BR /&gt;&amp;nbsp;define plan_cnt / analysis sum noprint;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; compute before incent_plan_effdt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uniqsub = 0;&lt;BR /&gt;&amp;nbsp; uniqsub+eff_cnt.sum;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;endcomp;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;compute after incent_plan_effdt;&lt;BR /&gt;&amp;nbsp; line @1 ipname $60. @62 'Count' @68 uniqsub 4. @79 uniqsub 4.; &amp;nbsp; &lt;BR /&gt;&amp;nbsp;endcomp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;compute before incentive_plan_name;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ipname = incentive_plan_name;&lt;BR /&gt;&amp;nbsp; uniqmem = 0;&lt;BR /&gt;&amp;nbsp; uniqmem+plan_cnt.sum;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; endcomp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;compute after incentive_plan_name;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; line @1 incentive_plan_name $60. @62 'Count' @68 uniqmem 4. @79 uniqmem 4.; &lt;BR /&gt;&amp;nbsp;endcomp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; compute before incentive_component_name;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; subcnt=0;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; endcomp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; compute after incentive_component_name;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; line @10 incentive_component_name $30. @95 subcnt 4. @115 subcnt 4.; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; endcomp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;compute after subscriber_id;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; subcnt+1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; endcomp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rbreak after / summarize ul ol; &lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;run;&lt;BR /&gt;&amp;nbsp;&lt;/P&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="1" face="Courier New"&gt;&lt;FONT size="1" face="Courier New"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Oct 2015 18:33:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Preventing-Duplication-of-Summary-Data/m-p/230424#M14525</guid>
      <dc:creator>nupedoc79</dc:creator>
      <dc:date>2015-10-17T18:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Preventing Duplication of Summary Data</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Preventing-Duplication-of-Summary-Data/m-p/230460#M14526</link>
      <description>Hi:&lt;BR /&gt;  I don't see how your program is producing the output you posted. You have over 10 items listed in the column statement and you only show 3 items in your "what's wrong" example. You don't show your ODS destination or explain whether you are using LISTING or RTF or PDF or HTML and your code.&lt;BR /&gt; &lt;BR /&gt;However, to help you debug, since you did not post any data that anyone could test with, my recommendation would be to alter your line statement like this: &lt;BR /&gt;line  ...... keep everything the same ..... '~1x';&lt;BR /&gt;&lt;BR /&gt;add a '~1x', '~2x','~3x' at the end of every LINE statement so you can figure out which line is the culprit.&lt;BR /&gt;&lt;BR /&gt;My guess is that you have too many COMPUTE AFTER blocks or you are not setting some value to 0 correctly or you don't need the RBREAK AFTER.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Sun, 18 Oct 2015 04:29:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Preventing-Duplication-of-Summary-Data/m-p/230460#M14526</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2015-10-18T04:29:40Z</dc:date>
    </item>
  </channel>
</rss>

