<?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: Including Data Values in ODS Contents= statements in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Including-Data-Values-in-ODS-Contents-statements/m-p/23493#M4040</link>
    <description>Hi:&lt;BR /&gt;
  BY groups will do it for you in PROC REPORT, however.&lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc sort data=sashelp.shoes out=shoes;&lt;BR /&gt;
  by product region;&lt;BR /&gt;
  where product in ('Boot', 'Sandal');&lt;BR /&gt;
run;&lt;BR /&gt;
                                &lt;BR /&gt;
ods pdf file='c:\temp\test_contents.pdf';&lt;BR /&gt;
  ods proclabel 'Some Report';&lt;BR /&gt;
  proc report data=shoes nowd contents='';&lt;BR /&gt;
    by product;&lt;BR /&gt;
    columns product region sales returns;&lt;BR /&gt;
    define product / group ;&lt;BR /&gt;
    define region / group;&lt;BR /&gt;
    define sales / sum ;&lt;BR /&gt;
    define returns / sum ;&lt;BR /&gt;
    break before product / contents='' page;&lt;BR /&gt;
  run;&lt;BR /&gt;
ods pdf close;&lt;BR /&gt;
[/pre]</description>
    <pubDate>Mon, 17 May 2010 21:25:48 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2010-05-17T21:25:48Z</dc:date>
    <item>
      <title>Including Data Values in ODS Contents= statements</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Including-Data-Values-in-ODS-Contents-statements/m-p/23491#M4038</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I have a report that breaks on change of value of a column, e.g.&lt;BR /&gt;
&lt;BR /&gt;
proc report data=xxx contents='Some Report';&lt;BR /&gt;
  columns category x y;&lt;BR /&gt;
  define category / order ...;&lt;BR /&gt;
  define x / display ...;&lt;BR /&gt;
  define y / display ...;&lt;BR /&gt;
  break before category / page contents=&lt;B&gt;&lt;I&gt;value-of-category&lt;/I&gt;&lt;/B&gt;;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Is this possible?  I could make category a BY variable, but this way would be cool to do.&lt;BR /&gt;
&lt;BR /&gt;
Earl</description>
      <pubDate>Mon, 17 May 2010 19:35:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Including-Data-Values-in-ODS-Contents-statements/m-p/23491#M4038</guid>
      <dc:creator>Earl_W</dc:creator>
      <dc:date>2010-05-17T19:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Including Data Values in ODS Contents= statements</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Including-Data-Values-in-ODS-Contents-statements/m-p/23492#M4039</link>
      <description>Earl,&lt;BR /&gt;
&lt;BR /&gt;
  You cannot do what you want with PROC REPORT.  You can do it with&lt;BR /&gt;
PROC TABULATE by specifying your class (categorical) variables in the TABLE&lt;BR /&gt;
statement page dimension.&lt;BR /&gt;
&lt;BR /&gt;
-- David Kelley, SAS</description>
      <pubDate>Mon, 17 May 2010 20:52:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Including-Data-Values-in-ODS-Contents-statements/m-p/23492#M4039</guid>
      <dc:creator>David_SAS</dc:creator>
      <dc:date>2010-05-17T20:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Including Data Values in ODS Contents= statements</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Including-Data-Values-in-ODS-Contents-statements/m-p/23493#M4040</link>
      <description>Hi:&lt;BR /&gt;
  BY groups will do it for you in PROC REPORT, however.&lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc sort data=sashelp.shoes out=shoes;&lt;BR /&gt;
  by product region;&lt;BR /&gt;
  where product in ('Boot', 'Sandal');&lt;BR /&gt;
run;&lt;BR /&gt;
                                &lt;BR /&gt;
ods pdf file='c:\temp\test_contents.pdf';&lt;BR /&gt;
  ods proclabel 'Some Report';&lt;BR /&gt;
  proc report data=shoes nowd contents='';&lt;BR /&gt;
    by product;&lt;BR /&gt;
    columns product region sales returns;&lt;BR /&gt;
    define product / group ;&lt;BR /&gt;
    define region / group;&lt;BR /&gt;
    define sales / sum ;&lt;BR /&gt;
    define returns / sum ;&lt;BR /&gt;
    break before product / contents='' page;&lt;BR /&gt;
  run;&lt;BR /&gt;
ods pdf close;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Mon, 17 May 2010 21:25:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Including-Data-Values-in-ODS-Contents-statements/m-p/23493#M4040</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-05-17T21:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Including Data Values in ODS Contents= statements</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Including-Data-Values-in-ODS-Contents-statements/m-p/23494#M4041</link>
      <description>Thanks, David and Cynthia.  I went with the BY variables.  Looks great.&lt;BR /&gt;
&lt;BR /&gt;
Earl</description>
      <pubDate>Tue, 18 May 2010 14:57:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Including-Data-Values-in-ODS-Contents-statements/m-p/23494#M4041</guid>
      <dc:creator>Earl_W</dc:creator>
      <dc:date>2010-05-18T14:57:12Z</dc:date>
    </item>
  </channel>
</rss>

