<?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: TLF in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/TLF/m-p/629890#M186401</link>
    <description>&lt;P&gt;Can you please provide sample code for this table.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Mar 2020 17:52:07 GMT</pubDate>
    <dc:creator>unnati</dc:creator>
    <dc:date>2020-03-05T17:52:07Z</dc:date>
    <item>
      <title>TLF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TLF/m-p/629884#M186397</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sas.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36625i1485125231E7825E/image-size/large?v=v2&amp;amp;px=999" role="button" title="sas.PNG" alt="sas.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*** ICT total= sum(drugB DrugC DrugE)&lt;/P&gt;&lt;P&gt;*** Total=sum(DrugA DrugB DrugC drugE) (which I know I can do using output option in data setp)&lt;/P&gt;&lt;P&gt;*** (xx.x)percentage = xx/N&lt;/P&gt;&lt;P&gt;***N= Bign count for each coulnm(N=XXX)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me to calculate for ‘&lt;STRONG&gt;ICT Total column’&lt;/STRONG&gt; counts. (5th column)&lt;/P&gt;&lt;P&gt;I need to calculate 5th column count for header which is (N=XXX) and table count which is xx(xx.x).&lt;/P&gt;&lt;P&gt;I am currently doing as follow. But is there any other way to do this instead of doing two proc sql and data set statement.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt; dataB;&lt;/P&gt;&lt;P&gt;set dataA;&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt;trtp='Total';&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;sql&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;create table bign as&lt;/P&gt;&lt;P&gt;select count(distinct subjid) as nsize, trtp&lt;/P&gt;&lt;P&gt;from dataB&lt;/P&gt;&lt;P&gt;WHERE TRTP NE ''&lt;/P&gt;&lt;P&gt;GROUP BY TRTP;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;sql&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;create table aa as&lt;/P&gt;&lt;P&gt;select sum(nsize) as nsize, 'ICT' as trtp&lt;/P&gt;&lt;P&gt;from bign&lt;/P&gt;&lt;P&gt;where trtp not in ('Total','DrugA');&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt; bign1;&lt;/P&gt;&lt;P&gt;set bign aa;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt; &lt;STRONG&gt;SORT&lt;/STRONG&gt; DATA=BIGN1;BY TRTP;&lt;STRONG&gt;RUN&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 17:08:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TLF/m-p/629884#M186397</guid>
      <dc:creator>unnati</dc:creator>
      <dc:date>2020-03-05T17:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: TLF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TLF/m-p/629888#M186400</link>
      <description>For a report like that I'd be using PROC MEANS. It allows you to calculate measures at different levels and if you use an MLF you can get different group combinations as desired. Then you use PROC REPORT to display the information. &lt;BR /&gt;&lt;BR /&gt;MLF will allow you to calculate the totals at the overall level, as well as just ICT level. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Mar 2020 17:35:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TLF/m-p/629888#M186400</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-03-05T17:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: TLF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TLF/m-p/629890#M186401</link>
      <description>&lt;P&gt;Can you please provide sample code for this table.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 17:52:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TLF/m-p/629890#M186401</guid>
      <dc:creator>unnati</dc:creator>
      <dc:date>2020-03-05T17:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: TLF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TLF/m-p/629892#M186403</link>
      <description>&lt;P&gt;Provide sample data and your current code for reporting please. You haven't provided data to work with.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/3676"&gt;@unnati&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Can you please provide sample code for this table.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 17:53:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TLF/m-p/629892#M186403</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-03-05T17:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: TLF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TLF/m-p/629900#M186408</link>
      <description>&lt;P&gt;I have attached one excel file. please help me with code example.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 18:15:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TLF/m-p/629900#M186408</guid>
      <dc:creator>unnati</dc:creator>
      <dc:date>2020-03-05T18:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: TLF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TLF/m-p/629915#M186416</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example 8 in this paper is what you want:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings/pdfs/sgf2008/173-2008.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings/pdfs/sgf2008/173-2008.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The code is in this file:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/rnd/papers/sgf2008/complex_reports.zip" target="_blank"&gt;https://support.sas.com/rnd/papers/sgf2008/complex_reports.zip&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I cannot download attachments.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/3676"&gt;@unnati&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have attached one excel file. please help me with code example.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 18:57:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TLF/m-p/629915#M186416</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-03-05T18:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: TLF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TLF/m-p/629979#M186444</link>
      <description>&lt;P&gt;Many users here don't want to download Excel files because of virus potential, others have such things blocked by security software. Also if you give us Excel we have to create a SAS data set and due to the non-existent constraints on Excel data cells the result we end up with may not have variables of the same type (numeric or character) and even values.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 23:59:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TLF/m-p/629979#M186444</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-03-05T23:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: TLF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TLF/m-p/629985#M186448</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt;&amp;nbsp;I reckon that this line about MS Office attachments, along with those in&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;'s signature, should be added as part of a list of checkbox prerequisites that must be validated before the &lt;STRONG&gt;Post&lt;/STRONG&gt; button is ungrayed, when asking a new question.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 01:12:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TLF/m-p/629985#M186448</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-03-06T01:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: TLF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TLF/m-p/630009#M186456</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt;&amp;nbsp;I reckon that this line about MS Office attachments, along with those in&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;'s signature, should be added as part of a list of checkbox prerequisites that must be validated before the &lt;STRONG&gt;Post&lt;/STRONG&gt; button is ungrayed, when asking a new question.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I would like to go one step further: prevent uploading of ms office files at all.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 06:50:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TLF/m-p/630009#M186456</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-03-06T06:50:34Z</dc:date>
    </item>
  </channel>
</rss>

