<?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 question in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report-question/m-p/31674#M7560</link>
    <description>This works but there may be a better way,  &lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
data sales;&lt;BR /&gt;
   input name $ zip sales;&lt;BR /&gt;
   cards;&lt;BR /&gt;
jonatan 6061 200&lt;BR /&gt;
jonatan 8080 400&lt;BR /&gt;
jeni 2020 700&lt;BR /&gt;
jeni 3040 800&lt;BR /&gt;
;;;;&lt;BR /&gt;
   run;&lt;BR /&gt;
proc report data=sales nowindows list;&lt;BR /&gt;
   column name name=name2 zip sales;&lt;BR /&gt;
   define name / group noprint;&lt;BR /&gt;
   define name2 / group;&lt;BR /&gt;
   define zip  / group;&lt;BR /&gt;
   define sales/sum format=6.2;&lt;BR /&gt;
&lt;BR /&gt;
   compute before name;&lt;BR /&gt;
      savename=name;&lt;BR /&gt;
      endcomp;&lt;BR /&gt;
&lt;BR /&gt;
   compute name2;&lt;BR /&gt;
      name2 = savename;&lt;BR /&gt;
      endcomp;&lt;BR /&gt;
   run;&lt;BR /&gt;
[/pre]</description>
    <pubDate>Thu, 17 Dec 2009 12:16:28 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2009-12-17T12:16:28Z</dc:date>
    <item>
      <title>Proc report question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report-question/m-p/31673#M7559</link>
      <description>Hi , I have this simple code :&lt;BR /&gt;
&lt;BR /&gt;
proc report data=sales nowindows;&lt;BR /&gt;
column name zip  sales;&lt;BR /&gt;
define name / group;&lt;BR /&gt;
define zip/group;&lt;BR /&gt;
define sales/sum format=6.2;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
The ouput is html.&lt;BR /&gt;
e.g :&lt;BR /&gt;
jonatan   6061  200&lt;BR /&gt;
             8080  400&lt;BR /&gt;
jeni       2020   700&lt;BR /&gt;
           3040   800&lt;BR /&gt;
&lt;BR /&gt;
My question :&lt;BR /&gt;
Is it possible to generate output like this :&lt;BR /&gt;
jonatan   6061  200&lt;BR /&gt;
jonatan   8080  400&lt;BR /&gt;
jeni        2020   700&lt;BR /&gt;
jeni       3040   800&lt;BR /&gt;
&lt;BR /&gt;
I tried to find  a solution on the web and i couldnt find...&lt;BR /&gt;
Any  suggestions?&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance ,</description>
      <pubDate>Thu, 17 Dec 2009 09:23:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-report-question/m-p/31673#M7559</guid>
      <dc:creator>yonib</dc:creator>
      <dc:date>2009-12-17T09:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report-question/m-p/31674#M7560</link>
      <description>This works but there may be a better way,  &lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
data sales;&lt;BR /&gt;
   input name $ zip sales;&lt;BR /&gt;
   cards;&lt;BR /&gt;
jonatan 6061 200&lt;BR /&gt;
jonatan 8080 400&lt;BR /&gt;
jeni 2020 700&lt;BR /&gt;
jeni 3040 800&lt;BR /&gt;
;;;;&lt;BR /&gt;
   run;&lt;BR /&gt;
proc report data=sales nowindows list;&lt;BR /&gt;
   column name name=name2 zip sales;&lt;BR /&gt;
   define name / group noprint;&lt;BR /&gt;
   define name2 / group;&lt;BR /&gt;
   define zip  / group;&lt;BR /&gt;
   define sales/sum format=6.2;&lt;BR /&gt;
&lt;BR /&gt;
   compute before name;&lt;BR /&gt;
      savename=name;&lt;BR /&gt;
      endcomp;&lt;BR /&gt;
&lt;BR /&gt;
   compute name2;&lt;BR /&gt;
      name2 = savename;&lt;BR /&gt;
      endcomp;&lt;BR /&gt;
   run;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Thu, 17 Dec 2009 12:16:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-report-question/m-p/31674#M7560</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2009-12-17T12:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report-question/m-p/31675#M7561</link>
      <description>Hi:&lt;BR /&gt;
  My only suggestion would be to modify the COMPUTE block for NAME2 to be:&lt;BR /&gt;
[pre]&lt;BR /&gt;
   compute name2 / character length=10;&lt;BR /&gt;
      name2 = savename;&lt;BR /&gt;
   endcomp;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                                &lt;BR /&gt;
So that you explicitly get the length you want.&lt;BR /&gt;
 &lt;BR /&gt;
For more information on PROC REPORT, these are good resources that will supplement the documentation:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/onlinedoc/v82/techreport_p258.pdf" target="_blank"&gt;http://support.sas.com/documentation/onlinedoc/v82/techreport_p258.pdf&lt;/A&gt; (the "original" NOWD (non-window) mode manual -- still good after all these years)&lt;BR /&gt;
&lt;BR /&gt;
Other TS papers:&lt;BR /&gt;
&lt;A href="http://support.sas.com/resources/papers/ProcReportBasics.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/ProcReportBasics.pdf&lt;/A&gt;&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;&lt;BR /&gt;
&lt;BR /&gt;
User Group papers:&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi31/235-31.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi31/235-31.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi30/244-30.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi30/244-30.pdf&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 17 Dec 2009 15:10:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-report-question/m-p/31675#M7561</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-12-17T15:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report-question/m-p/31676#M7562</link>
      <description>Hi ,&lt;BR /&gt;
Data _null_ thanks alot  for your solution .&lt;BR /&gt;
&lt;BR /&gt;
Cynthia thanks alot for the documentation .</description>
      <pubDate>Thu, 17 Dec 2009 17:49:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-report-question/m-p/31676#M7562</guid>
      <dc:creator>yonib</dc:creator>
      <dc:date>2009-12-17T17:49:04Z</dc:date>
    </item>
  </channel>
</rss>

