<?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: Need help in Proc Tabulate. in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-help-in-Proc-Tabulate/m-p/102781#M9769</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cynthia..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have gone through your paper and tried get desired output with Proc report and Data _null_,but i can't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't mind could you please provide code for above dataset to get required output,then i can apply same logic to my original dataset..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that would to be helpful for me..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sanjeev.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Dec 2012 07:10:12 GMT</pubDate>
    <dc:creator>kuridisanjeev</dc:creator>
    <dc:date>2012-12-19T07:10:12Z</dc:date>
    <item>
      <title>Need help in Proc Tabulate.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-help-in-Proc-Tabulate/m-p/102775#M9763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am running bellow Proc Tabulate code to create listing&amp;nbsp; Output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Proc tabulate data=t missing ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;class&amp;nbsp;&amp;nbsp; sex actlevel;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var fee;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;table&amp;nbsp; Fee = 'Fee' *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(n = 'n' * f = 8.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mean = 'Mean' * f = 5.1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;std = 'Standard Deviation' * f = 5.1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;min = 'Min' * f = 3. Max = 'Max' * f = 3.) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sex="Gender",actlevel;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I am not getting exact format,which client was asking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached data and my requirement as well..Could you please help me on this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards..&lt;/P&gt;&lt;P&gt;Sanjeev.K&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10721i24717859784A4F82/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Required Output.JPG" title="Required Output.JPG" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 15:12:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-help-in-Proc-Tabulate/m-p/102775#M9763</guid>
      <dc:creator>kuridisanjeev</dc:creator>
      <dc:date>2012-12-18T15:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in Proc Tabulate.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-help-in-Proc-Tabulate/m-p/102776#M9764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tabulate isn't likely to be your answer as the calculations, as you have found out, want to be in separate cells.&lt;/P&gt;&lt;P&gt;You might try using Proc means/summary to generate the statistics for the class variables output to a dataset. The use a data step to create the strings you need like the Mean (std dev) pairs with a variable to hold a row label and then proc print to display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 15:19:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-help-in-Proc-Tabulate/m-p/102776#M9764</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2012-12-18T15:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in Proc Tabulate.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-help-in-Proc-Tabulate/m-p/102777#M9765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please provide code for that logic..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 16:06:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-help-in-Proc-Tabulate/m-p/102777#M9765</guid>
      <dc:creator>kuridisanjeev</dc:creator>
      <dc:date>2012-12-18T16:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in Proc Tabulate.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-help-in-Proc-Tabulate/m-p/102778#M9766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Proc tabulate isn't the answer, this is a fairly customized report, though an almost standard 'clinical' or publication style reporting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Google clinical reporting on lexjansen.com&lt;/P&gt;&lt;P&gt;for some solutions on how to get what you want. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 16:06:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-help-in-Proc-Tabulate/m-p/102778#M9766</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-12-18T16:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in Proc Tabulate.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-help-in-Proc-Tabulate/m-p/102779#M9767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's a good one that's almost identical to what you need:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.lexjansen.com/pharmasug/2010/tt/tt05.pdf" title="http://www.lexjansen.com/pharmasug/2010/tt/tt05.pdf"&gt;http://www.lexjansen.com/pharmasug/2010/tt/tt05.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 16:12:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-help-in-Proc-Tabulate/m-p/102779#M9767</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-12-18T16:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in Proc Tabulate.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-help-in-Proc-Tabulate/m-p/102780#M9768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; What you show here is almost exactly what I showed in my paper "Creating Complex Reports" -- you are not going to get this kind of report from PROC TABULATE. Did you look at my paper? Most people either create this report with PROC REPORT or they use a DATA _NULL_ step if they are creating LISTING output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 16:20:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-help-in-Proc-Tabulate/m-p/102780#M9768</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-12-18T16:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in Proc Tabulate.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-help-in-Proc-Tabulate/m-p/102781#M9769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cynthia..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have gone through your paper and tried get desired output with Proc report and Data _null_,but i can't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't mind could you please provide code for above dataset to get required output,then i can apply same logic to my original dataset..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that would to be helpful for me..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sanjeev.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 07:10:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-help-in-Proc-Tabulate/m-p/102781#M9769</guid>
      <dc:creator>kuridisanjeev</dc:creator>
      <dc:date>2012-12-19T07:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in Proc Tabulate.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-help-in-Proc-Tabulate/m-p/102782#M9770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; You can go here: &lt;A href="http://support.sas.com/rnd/papers/sgf2008/complex_reports.zip" title="http://support.sas.com/rnd/papers/sgf2008/complex_reports.zip"&gt;http://support.sas.com/rnd/papers/sgf2008/complex_reports.zip&lt;/A&gt; and get the zip file of programs and data that accompanied my paper. My example 1 program(s)&amp;nbsp; and my example 8 programs both work using the data file that I provide in the zip. I just demo'd them at a user group meeting in November. You should be able to compare my patient_info file with your file and then once you understand how my program works using MY data, you can adjust the program to work with YOUR data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you look in the zip file, you can see that there are actually several programs:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;complex1_demog.sas&lt;/STRONG&gt; (uses patient_info data)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;complex1_demog_data_macro.sas&lt;/STRONG&gt; (uses patient_info data)&lt;/P&gt;&lt;P&gt;and &lt;STRONG&gt;complex1_demog_examp_alt_data.sas&lt;/STRONG&gt; (this one uses different data than the first 2, also in the zip file)&lt;/P&gt;&lt;P&gt;In addition, the DATA _NULL_ example is &lt;STRONG&gt;complex8_demog_data_null.sas&lt;/STRONG&gt; (uses patient_info data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I've already written this program 4 times in order to write the paper. Nobody knows your data as well as you do. The full code and the datasets are all in the zip file. My suggestion would be to start with the PROC REPORT example -- to me, it would be too confusing to try to switch between PROC REPORT and DATA step. You should be able to put my data in &lt;STRONG&gt;c:\complex&lt;/STRONG&gt; directory and then make a &lt;STRONG&gt;c:\complex\output&lt;/STRONG&gt; folder and issue the &lt;STRONG&gt;complex0_libname.sas&lt;/STRONG&gt; program to establish the library reference. Then, the &lt;STRONG&gt;complex1_demog.sas&lt;/STRONG&gt; program should run for you. My patient_info file is not too lengthy -- 1049 obs and 8 columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The columns are:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;Variable&amp;nbsp;&amp;nbsp;&amp;nbsp; Type&amp;nbsp; Len&amp;nbsp; Format&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Label&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;patient_id&amp;nbsp; Num&amp;nbsp;&amp;nbsp;&amp;nbsp; 8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pat. ID&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;age&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num&amp;nbsp;&amp;nbsp;&amp;nbsp; 8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Age &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;Gender&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Char&amp;nbsp;&amp;nbsp; 6&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;cadn&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num&amp;nbsp;&amp;nbsp;&amp;nbsp; 8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CAD (Required)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;cadmi&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num&amp;nbsp;&amp;nbsp;&amp;nbsp; 8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Myocardial Infarction Category&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;hypern&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num&amp;nbsp;&amp;nbsp;&amp;nbsp; 8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hypertension Category&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;nyha&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Char&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NYHA Category&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;lvef&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num&amp;nbsp;&amp;nbsp;&amp;nbsp; 8&amp;nbsp;&amp;nbsp;&amp;nbsp; COMMA8.&amp;nbsp; Left Ventricular Ejection Fraction&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to adjust any sample program to your data, you first have to understand what the program is doing and how it works. Once you understand how my program is working, then you should be able to modify it to suit your needs. My program, run directly from the zip file, produces the output shown in the screen shot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11886iB4B54FEFE4423843/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="patient_demog_output.png" title="patient_demog_output.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 17:42:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-help-in-Proc-Tabulate/m-p/102782#M9770</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-12-19T17:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in Proc Tabulate.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-help-in-Proc-Tabulate/m-p/102783#M9771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Cynthia for your help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sanjeev.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 09:40:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-help-in-Proc-Tabulate/m-p/102783#M9771</guid>
      <dc:creator>kuridisanjeev</dc:creator>
      <dc:date>2012-12-20T09:40:44Z</dc:date>
    </item>
  </channel>
</rss>

