<?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: How to get values repeating and not supressed for groups in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-get-values-repeating-and-not-supressed-for-groups/m-p/5193#M2099</link>
    <description>Hi:&lt;BR /&gt;
  Basically, suppression of repeating values is what comes with ORDER and GROUP usage. You can't make them work any differently. However, you can create a new report item that is assigned the value for region and group. But, to do that you have to "grab" those values in a COMPUTE BEFORE ... block and then save them in a temporary variable. Then you use the temporary variable to assign a value to the column that shows up on the report.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc report data=sashelp.shoes nowd;&lt;BR /&gt;
  COLUMN Region newreg Product newprod Subsidiary Sales;&lt;BR /&gt;
  DEFINE Region / group width=20 noprint;&lt;BR /&gt;
  define newreg /computed 'Region';&lt;BR /&gt;
    &lt;BR /&gt;
  DEFINE product / group width=20 noprint;&lt;BR /&gt;
  define newprod /computed 'Product';&lt;BR /&gt;
    &lt;BR /&gt;
  DEFINE Sales / ANALYSIS SUM;&lt;BR /&gt;
  *break after Product / summarize;&lt;BR /&gt;
    &lt;BR /&gt;
  compute before Region;&lt;BR /&gt;
    ** "grab" the region value before it is suppressed;&lt;BR /&gt;
    holdreg = Region;&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
  compute newreg / character length=20;&lt;BR /&gt;
    newreg = holdreg;&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
    &lt;BR /&gt;
  compute before Product;&lt;BR /&gt;
    ** "grab" the product value before it is suppressed;&lt;BR /&gt;
    holdprod = Product;&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
  compute newprod/ character length=20;&lt;BR /&gt;
    newprod = holdprod;&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
    &lt;BR /&gt;
  COMPUTE AFTER Product ;&lt;BR /&gt;
      LINE @59 'TOTAL' &lt;BR /&gt;
           @89 Sales.Sum ;&lt;BR /&gt;
      LINE '';&lt;BR /&gt;
  ENDCOMP;&lt;BR /&gt;
  COMPUTE AFTER ;&lt;BR /&gt;
    LINE @59 'GRAND TOTAL' &lt;BR /&gt;
         @89 Sales.Sum;&lt;BR /&gt;
    LINE '';&lt;BR /&gt;
  ENDCOMP;&lt;BR /&gt;
&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]</description>
    <pubDate>Wed, 24 Oct 2007 15:27:01 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2007-10-24T15:27:01Z</dc:date>
    <item>
      <title>How to get values repeating and not supressed for groups</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-get-values-repeating-and-not-supressed-for-groups/m-p/5192#M2098</link>
      <description>The following code shows the output summarised on Product and Grand total for Region&lt;BR /&gt;
&lt;BR /&gt;
proc report data=sashelp.shoes;&lt;BR /&gt;
	COLUMN Region Product Subsidiary Sales;&lt;BR /&gt;
	DEFINE Region  / group  width=20;&lt;BR /&gt;
	DEFINE product  / group  width=20;&lt;BR /&gt;
	DEFINE Sales /  ANALYSIS SUM;&lt;BR /&gt;
	*break after Product / summarize;&lt;BR /&gt;
&lt;BR /&gt;
	COMPUTE AFTER Product ;&lt;BR /&gt;
		LINE @59 'TOTAL' &lt;BR /&gt;
			 @89 Sales.Sum ;&lt;BR /&gt;
		LINE '';&lt;BR /&gt;
	ENDCOMP;&lt;BR /&gt;
	COMPUTE AFTER  ;&lt;BR /&gt;
		LINE @59 'GRAND TOTAL' &lt;BR /&gt;
			 @89 Sales.Sum;&lt;BR /&gt;
		LINE '';&lt;BR /&gt;
	ENDCOMP;&lt;BR /&gt;
&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
How can I get the Region and Product values repeating and not supressed.</description>
      <pubDate>Wed, 24 Oct 2007 14:51:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-get-values-repeating-and-not-supressed-for-groups/m-p/5192#M2098</guid>
      <dc:creator>SanjayM</dc:creator>
      <dc:date>2007-10-24T14:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to get values repeating and not supressed for groups</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-get-values-repeating-and-not-supressed-for-groups/m-p/5193#M2099</link>
      <description>Hi:&lt;BR /&gt;
  Basically, suppression of repeating values is what comes with ORDER and GROUP usage. You can't make them work any differently. However, you can create a new report item that is assigned the value for region and group. But, to do that you have to "grab" those values in a COMPUTE BEFORE ... block and then save them in a temporary variable. Then you use the temporary variable to assign a value to the column that shows up on the report.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc report data=sashelp.shoes nowd;&lt;BR /&gt;
  COLUMN Region newreg Product newprod Subsidiary Sales;&lt;BR /&gt;
  DEFINE Region / group width=20 noprint;&lt;BR /&gt;
  define newreg /computed 'Region';&lt;BR /&gt;
    &lt;BR /&gt;
  DEFINE product / group width=20 noprint;&lt;BR /&gt;
  define newprod /computed 'Product';&lt;BR /&gt;
    &lt;BR /&gt;
  DEFINE Sales / ANALYSIS SUM;&lt;BR /&gt;
  *break after Product / summarize;&lt;BR /&gt;
    &lt;BR /&gt;
  compute before Region;&lt;BR /&gt;
    ** "grab" the region value before it is suppressed;&lt;BR /&gt;
    holdreg = Region;&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
  compute newreg / character length=20;&lt;BR /&gt;
    newreg = holdreg;&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
    &lt;BR /&gt;
  compute before Product;&lt;BR /&gt;
    ** "grab" the product value before it is suppressed;&lt;BR /&gt;
    holdprod = Product;&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
  compute newprod/ character length=20;&lt;BR /&gt;
    newprod = holdprod;&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
    &lt;BR /&gt;
  COMPUTE AFTER Product ;&lt;BR /&gt;
      LINE @59 'TOTAL' &lt;BR /&gt;
           @89 Sales.Sum ;&lt;BR /&gt;
      LINE '';&lt;BR /&gt;
  ENDCOMP;&lt;BR /&gt;
  COMPUTE AFTER ;&lt;BR /&gt;
    LINE @59 'GRAND TOTAL' &lt;BR /&gt;
         @89 Sales.Sum;&lt;BR /&gt;
    LINE '';&lt;BR /&gt;
  ENDCOMP;&lt;BR /&gt;
&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Wed, 24 Oct 2007 15:27:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-get-values-repeating-and-not-supressed-for-groups/m-p/5193#M2099</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-10-24T15:27:01Z</dc:date>
    </item>
  </channel>
</rss>

