<?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 Tabulate Question in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Proc-Tabulate-Question/m-p/4019#M1874</link>
    <description>Hi, Cynthia.....&lt;BR /&gt;
&lt;BR /&gt;
I got the PROC TABULATE working in my stored process!!  Thanks for your assistance!  I have a question, though..... my report shows field names and the letter N, and I need to know how to remove that type of data.  Here is a sketch of my report:&lt;BR /&gt;
&lt;BR /&gt;
CAMPUS NAME...|........................................Gender_Desc.............................&lt;BR /&gt;
...........................|...............Female................................................Male&lt;BR /&gt;
...........................|....Primary_Ethnicity..................|..................Primary Ethnicity&lt;BR /&gt;
...........................| Indian...Asian...Black................|....Indian...Asian...Black.......&lt;BR /&gt;
...........................|.....N.........N..........N.................|.......N.........N.........N.&lt;BR /&gt;
......DeptA............|.....23.......1...........15................|........6..........3.........5&lt;BR /&gt;
......DeptB............|.....7..........4...........3.................|........0........32.........4&lt;BR /&gt;
&lt;BR /&gt;
Within that, I want to remove the lines that show Gender_Desc and Primary_Ethnicty.  And, will removing those names also remove the areas where those lines were?  How do I remove those lines, while leaving the rest of my code intact?</description>
    <pubDate>Thu, 02 Aug 2007 19:53:07 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2007-08-02T19:53:07Z</dc:date>
    <item>
      <title>Proc Tabulate Question</title>
      <link>https://communities.sas.com/t5/Developers/Proc-Tabulate-Question/m-p/4015#M1870</link>
      <description>I'm trying to use Proc Tabulate to create a report that will appear as follwos:&lt;BR /&gt;
&lt;BR /&gt;
I need to have college names over gender types, and then have that over ethnicity types (these will be my row lines), and have all of that listed out by department names going down.  I want the report to look like this:&lt;BR /&gt;
&lt;BR /&gt;
..........................................College Name...................................&lt;BR /&gt;
..................Male.......................................................Female......&lt;BR /&gt;
..........Ethnic1 Ethnic2 Ethnic3 .................Ethnic1 Ethnic2 Ethnic3 &lt;BR /&gt;
Dept1.....3......... 4.......... 7..........................0...........10...........11&lt;BR /&gt;
Dept2.....2..........3...........1.........................99...........2..............5 &lt;BR /&gt;
Dept3.....0.........200........0..........................3............7..............6           &lt;BR /&gt;
&lt;BR /&gt;
I'm trying to wrap my head around what might go on the CLASS line and what goes on the TABLE line.  Several things I have tried end up giving me ALL the data straight across as opposed to showing the data in row and column format.&lt;BR /&gt;
&lt;BR /&gt;
If someone might offer a little advice it would be welcome!!  Thanks!</description>
      <pubDate>Thu, 02 Aug 2007 15:30:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Proc-Tabulate-Question/m-p/4015#M1870</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-08-02T15:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate Question</title>
      <link>https://communities.sas.com/t5/Developers/Proc-Tabulate-Question/m-p/4016#M1871</link>
      <description>Hi:&lt;BR /&gt;
  Using PROC TABULATE was one of the topics/tutorials that I gave at PharmaSUG a few years ago. If you go to this web site:&lt;BR /&gt;
&lt;A href="http://www.lexjansen.com/cgi-bin/psug.asp?x=ttab&amp;amp;s=psug_t" target="_blank"&gt;http://www.lexjansen.com/cgi-bin/psug.asp?x=ttab&amp;amp;s=psug_t&lt;/A&gt;&lt;BR /&gt;
And look for the presentation, entitled "Good Table Manners with PROC TABULATE", you will find a link to download the code for the presentation. That zip file also contains a PDF file of the slides.&lt;BR /&gt;
 &lt;BR /&gt;
The bottom line with TABULATE is that the CLASS statement sets categories or buckets for collecting observations. The VAR statement sets which variables should be used for analysis in the buckets. If you do not have any VAR statements, then the default statistic which you would get would be the COUNT or N statistic.&lt;BR /&gt;
 &lt;BR /&gt;
The only other thing you have to know about TABULATE is that the TABLE statement, then arranges the CLASS and/or  VAR variables in a table structure. In addition, the comma operator is used in the TABLE statement to build dimensions:&lt;BR /&gt;
[pre]&lt;BR /&gt;
table region, subsidiary, product;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
would have region in the PAGE dimension, subsidiary in the ROW dimension and product in the COLUMN dimension. Then:&lt;BR /&gt;
[pre]&lt;BR /&gt;
table region, product;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
with ONE comma would have region in the ROW dimension, product in the COLUMN dimension. Another operator (the *) is used to cross or next variables, so for example:&lt;BR /&gt;
[pre]&lt;BR /&gt;
table region, subsidiary*product;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
would have region in the ROW diimension and subsidiary crossed with product (or you could think of it as product values nested underneath subsidiary values) in the COLUMN dimension. A TABLE statement without ANY commas will give you all your variables in the COLUMN dimension, so at the very least, you have to introduce a COMMA and probably a couple of ASTERISKS in your TABLE statement to get the table structure that you want.&lt;BR /&gt;
   &lt;BR /&gt;
For your table sketch, even though you said that you consider COLLEGE, GENDER and ETHNIC to be "row lines" -- they would be considered COLUMN headings in terms of PROC TABULATE -- therefore, all 3 of those variables would be your COLUMN dimension. The only variable that comprises rows in your sketch are the DEPT variable levels (Dept1, Dept2, etc), therefore, DEPT would be in your ROW dimension:&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc tabulate data=mydata format=comma6.;&lt;BR /&gt;
class college gender ethnic dept;&lt;BR /&gt;
table dept,&lt;BR /&gt;
        college*gender*ethnic;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
or if you had more than 1 college, you might want to make college a PAGE dimension:&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc tabulate data=mydata format=comma6.;&lt;BR /&gt;
class college gender ethnic dept;&lt;BR /&gt;
table college, &lt;BR /&gt;
        dept,&lt;BR /&gt;
        gender*ethnic /&lt;BR /&gt;
        box=_page_;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
BTW, EG has an excellent table designer GUI interface for PROC TABULATE. To get to it you would select DESCRIBE --&amp;gt; SUMMARY TABLES. Once you set your Task Roles (Classification and Analysis variables), then the drag and drop table designer is under the Summary Tables choice in the navigation pane.&lt;BR /&gt;
 &lt;BR /&gt;
If you would prefer to read more about PROC TABULATE, these papers might prove helpful:&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi25/25/iv/25p159.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi25/25/iv/25p159.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www.laurenhaworth.com/publications/71-28.pdf" target="_blank"&gt;http://www.laurenhaworth.com/publications/71-28.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi30/179-30.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi30/179-30.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
You'll also have to read in the TABULATE documentation about how missing values are treated and make sure you have the right MISSING option set with TABULATE, if you do have CLASS variables with possible missing values and you want those to show on the table.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 02 Aug 2007 16:08:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Proc-Tabulate-Question/m-p/4016#M1871</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-08-02T16:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate Question</title>
      <link>https://communities.sas.com/t5/Developers/Proc-Tabulate-Question/m-p/4017#M1872</link>
      <description>Thank you so very much for replying as quickly as you did!  There certainly is a lot to learn, isn't there?  I'll let you know as soon as I have a test report made from Proc Tabulate.&lt;BR /&gt;
&lt;BR /&gt;
Thanks again!</description>
      <pubDate>Thu, 02 Aug 2007 16:51:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Proc-Tabulate-Question/m-p/4017#M1872</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-08-02T16:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate Question</title>
      <link>https://communities.sas.com/t5/Developers/Proc-Tabulate-Question/m-p/4018#M1873</link>
      <description>Yes, there -IS- a lot to learn. I call it "learning to think like SAS". But really, it boils down to learning one procedure at a time or one kind of functionality at a time. There are many resources to help you learn what you need to know (SUGI papers, user-group papers, books by users). We also have classes ... our beginning programming class (SAS Programming I: Essentials) is offered at various training center sites AND as a Live Web class, which you can take from your own computer without needing to travel. The same is true of our EG Query and Reporting class and the SAS Macro class.&lt;BR /&gt;
&lt;A href="http://support.sas.com/training/us/crs/prog1.html" target="_blank"&gt;http://support.sas.com/training/us/crs/prog1.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/training/us/crs/macr.html" target="_blank"&gt;http://support.sas.com/training/us/crs/macr.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/training/us/crs/egqr.html" target="_blank"&gt;http://support.sas.com/training/us/crs/egqr.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Pretty cool, huh? Sorry, I couldn't resist a plug for the classes, you gave me the perfect opening!&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 02 Aug 2007 17:57:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Proc-Tabulate-Question/m-p/4018#M1873</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-08-02T17:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate Question</title>
      <link>https://communities.sas.com/t5/Developers/Proc-Tabulate-Question/m-p/4019#M1874</link>
      <description>Hi, Cynthia.....&lt;BR /&gt;
&lt;BR /&gt;
I got the PROC TABULATE working in my stored process!!  Thanks for your assistance!  I have a question, though..... my report shows field names and the letter N, and I need to know how to remove that type of data.  Here is a sketch of my report:&lt;BR /&gt;
&lt;BR /&gt;
CAMPUS NAME...|........................................Gender_Desc.............................&lt;BR /&gt;
...........................|...............Female................................................Male&lt;BR /&gt;
...........................|....Primary_Ethnicity..................|..................Primary Ethnicity&lt;BR /&gt;
...........................| Indian...Asian...Black................|....Indian...Asian...Black.......&lt;BR /&gt;
...........................|.....N.........N..........N.................|.......N.........N.........N.&lt;BR /&gt;
......DeptA............|.....23.......1...........15................|........6..........3.........5&lt;BR /&gt;
......DeptB............|.....7..........4...........3.................|........0........32.........4&lt;BR /&gt;
&lt;BR /&gt;
Within that, I want to remove the lines that show Gender_Desc and Primary_Ethnicty.  And, will removing those names also remove the areas where those lines were?  How do I remove those lines, while leaving the rest of my code intact?</description>
      <pubDate>Thu, 02 Aug 2007 19:53:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Proc-Tabulate-Question/m-p/4019#M1874</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-08-02T19:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate Question</title>
      <link>https://communities.sas.com/t5/Developers/Proc-Tabulate-Question/m-p/4020#M1875</link>
      <description>Please disregard my last question....I figured it out and the report is now working!</description>
      <pubDate>Thu, 02 Aug 2007 20:38:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Proc-Tabulate-Question/m-p/4020#M1875</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-08-02T20:38:41Z</dc:date>
    </item>
  </channel>
</rss>

