<?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 Proc Report Question with GROUPS in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Question-with-GROUPS/m-p/50564#M6452</link>
    <description>hi there,&lt;BR /&gt;
&lt;BR /&gt;
I have the following sample dataset.&lt;BR /&gt;
&lt;BR /&gt;
Age    ID       FIRSTNAME          LASTNAME&lt;BR /&gt;
------------------------------------------------------------------&lt;BR /&gt;
10      100     FNAME1               LNAME1&lt;BR /&gt;
10      200     FNAME2               LNAME2&lt;BR /&gt;
10      300     FNAME3               LNAME3&lt;BR /&gt;
20      400     FNAME4               LNAME4&lt;BR /&gt;
20      500     FNAME5               LNAME5&lt;BR /&gt;
------------------------------------------------------------------&lt;BR /&gt;
&lt;BR /&gt;
I am trying to create the following report.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
                              REPORT TITLE&lt;BR /&gt;
 &lt;BR /&gt;
AGE: 10&lt;BR /&gt;
&lt;BR /&gt;
ID           FIRSTNAME           LASTNAME&lt;BR /&gt;
--------------------------------------------------------------&lt;BR /&gt;
100         FNAME1               LNAME1&lt;BR /&gt;
200         FNAME2               LNAME2&lt;BR /&gt;
300         FNAME3               LNAME3&lt;BR /&gt;
&lt;BR /&gt;
TOTAL NUMBER OF IDS: 3&lt;BR /&gt;
&lt;BR /&gt;
AGE: 20&lt;BR /&gt;
&lt;BR /&gt;
ID           FIRSTNAME       LASTNAME&lt;BR /&gt;
---------------------------------------------------------&lt;BR /&gt;
400        FNAME1            LNAME1&lt;BR /&gt;
500        FNAME2            LNAME2&lt;BR /&gt;
&lt;BR /&gt;
TOTAL NUMBER OF IDS: 2&lt;BR /&gt;
&lt;BR /&gt;
GRAND TOTAL NUMBER OF IDS: 5&lt;BR /&gt;
&lt;BR /&gt;
                   ---------END OF REPORT--------&lt;BR /&gt;
&lt;BR /&gt;
I've got the solution in data null in ODS PDF Destination but i am&lt;BR /&gt;
trying to do it in PROC REPORT using PDF Destination.&lt;BR /&gt;
I want to know whether we can do this kinda report in Proc report or not.&lt;BR /&gt;
IF yes i would like to see how we can do it.&lt;BR /&gt;
&lt;BR /&gt;
Help will be Appreciated.&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
Aravind</description>
    <pubDate>Thu, 14 Apr 2011 15:54:11 GMT</pubDate>
    <dc:creator>aravind</dc:creator>
    <dc:date>2011-04-14T15:54:11Z</dc:date>
    <item>
      <title>Proc Report Question with GROUPS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Question-with-GROUPS/m-p/50564#M6452</link>
      <description>hi there,&lt;BR /&gt;
&lt;BR /&gt;
I have the following sample dataset.&lt;BR /&gt;
&lt;BR /&gt;
Age    ID       FIRSTNAME          LASTNAME&lt;BR /&gt;
------------------------------------------------------------------&lt;BR /&gt;
10      100     FNAME1               LNAME1&lt;BR /&gt;
10      200     FNAME2               LNAME2&lt;BR /&gt;
10      300     FNAME3               LNAME3&lt;BR /&gt;
20      400     FNAME4               LNAME4&lt;BR /&gt;
20      500     FNAME5               LNAME5&lt;BR /&gt;
------------------------------------------------------------------&lt;BR /&gt;
&lt;BR /&gt;
I am trying to create the following report.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
                              REPORT TITLE&lt;BR /&gt;
 &lt;BR /&gt;
AGE: 10&lt;BR /&gt;
&lt;BR /&gt;
ID           FIRSTNAME           LASTNAME&lt;BR /&gt;
--------------------------------------------------------------&lt;BR /&gt;
100         FNAME1               LNAME1&lt;BR /&gt;
200         FNAME2               LNAME2&lt;BR /&gt;
300         FNAME3               LNAME3&lt;BR /&gt;
&lt;BR /&gt;
TOTAL NUMBER OF IDS: 3&lt;BR /&gt;
&lt;BR /&gt;
AGE: 20&lt;BR /&gt;
&lt;BR /&gt;
ID           FIRSTNAME       LASTNAME&lt;BR /&gt;
---------------------------------------------------------&lt;BR /&gt;
400        FNAME1            LNAME1&lt;BR /&gt;
500        FNAME2            LNAME2&lt;BR /&gt;
&lt;BR /&gt;
TOTAL NUMBER OF IDS: 2&lt;BR /&gt;
&lt;BR /&gt;
GRAND TOTAL NUMBER OF IDS: 5&lt;BR /&gt;
&lt;BR /&gt;
                   ---------END OF REPORT--------&lt;BR /&gt;
&lt;BR /&gt;
I've got the solution in data null in ODS PDF Destination but i am&lt;BR /&gt;
trying to do it in PROC REPORT using PDF Destination.&lt;BR /&gt;
I want to know whether we can do this kinda report in Proc report or not.&lt;BR /&gt;
IF yes i would like to see how we can do it.&lt;BR /&gt;
&lt;BR /&gt;
Help will be Appreciated.&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
Aravind</description>
      <pubDate>Thu, 14 Apr 2011 15:54:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Question-with-GROUPS/m-p/50564#M6452</guid>
      <dc:creator>aravind</dc:creator>
      <dc:date>2011-04-14T15:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Question with GROUPS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Question-with-GROUPS/m-p/50565#M6453</link>
      <description>Hi:&lt;BR /&gt;
  This previous posting:&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/message.jspa?messageID=53453#53453" target="_blank"&gt;http://support.sas.com/forums/message.jspa?messageID=53453#53453&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
still has good information to answer your question. What you want to do is possible with PROC REPORT. There are techniques in this paper also,&lt;BR /&gt;
&lt;A href="http://support.sas.com/rnd/papers/sgf07/sgf2007-report.pdf" target="_blank"&gt;http://support.sas.com/rnd/papers/sgf07/sgf2007-report.pdf&lt;/A&gt; (original paper)&lt;BR /&gt;
&lt;A href="http://support.sas.com/resources/papers/proceedings11/246-2011.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings11/246-2011.pdf&lt;/A&gt; (updated for 9.2)&lt;BR /&gt;
&lt;BR /&gt;
that show how to write customized break lines -- you will either use a LINE statement or you will create an "extra" breaking variable to do it.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 14 Apr 2011 18:25:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Question-with-GROUPS/m-p/50565#M6453</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-04-14T18:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Question with GROUPS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Question-with-GROUPS/m-p/50566#M6454</link>
      <description>[pre]&lt;BR /&gt;
data temp;&lt;BR /&gt;
 title='REPORT TITLE';&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
data want;&lt;BR /&gt;
input Age ID FIRSTNAME $ LASTNAME $;&lt;BR /&gt;
datalines;&lt;BR /&gt;
10 100 FNAME1 LNAME1&lt;BR /&gt;
10 200 FNAME2 LNAME2&lt;BR /&gt;
10 300 FNAME3 LNAME3&lt;BR /&gt;
20 400 FNAME4 LNAME4&lt;BR /&gt;
20 500 FNAME5 LNAME5&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
options nodate nonumber;&lt;BR /&gt;
title ' ';&lt;BR /&gt;
ods pdf file='c:\x.pdf' uniform startpage=never;&lt;BR /&gt;
proc report  data=temp style={frame=void rules=none } noheader nowd;&lt;BR /&gt;
 column title;&lt;BR /&gt;
 define title/style={font_size=50px font_weight=bold};&lt;BR /&gt;
run;&lt;BR /&gt;
proc report data=want nowd style=sasweb noheader;&lt;BR /&gt;
 column age id firstname lastname n;&lt;BR /&gt;
 define age/group noprint;&lt;BR /&gt;
 define id/style={just=left};&lt;BR /&gt;
 define firstname /style={just=right};&lt;BR /&gt;
 define lastname /style={just=right};&lt;BR /&gt;
 define n/noprint;&lt;BR /&gt;
 compute before age/style={just=left};&lt;BR /&gt;
  line 'AGE:' age best2. ;&lt;BR /&gt;
  line @1 'ID' @24 'FIRSTNAME' @44 'LASTNAME' ;&lt;BR /&gt;
  line 60*'-';&lt;BR /&gt;
 endcomp;&lt;BR /&gt;
 compute after age/style={just=left};&lt;BR /&gt;
  line 'TOTAL NUMBER OF IDS:' n best4.;&lt;BR /&gt;
  line ' ';&lt;BR /&gt;
 endcomp;&lt;BR /&gt;
 compute after/style={just=left};&lt;BR /&gt;
  line '----------END OF REPORT------------';&lt;BR /&gt;
 endcomp;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
ods pdf close;&lt;BR /&gt;
&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp

Message was edited by: Ksharp</description>
      <pubDate>Fri, 15 Apr 2011 10:38:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Question-with-GROUPS/m-p/50566#M6454</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-04-15T10:38:50Z</dc:date>
    </item>
  </channel>
</rss>

