<?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 Deleting a col in output in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Deleting-a-col-in-output/m-p/118477#M259523</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the below syntax to generate the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODS html body='D:\SAS Project\Output\sample3.xls';&lt;/P&gt;&lt;P&gt;proc tabulate data=prac.parents;&lt;/P&gt;&lt;P&gt;format gender gender. c2_2 prefer.;&lt;/P&gt;&lt;P&gt;class age gender c2_2/mlf preloadfmt order=data ;&lt;/P&gt;&lt;P&gt;tables all='Base :All Respondents'*f=9.0*N='' c2_2=''*colpctn='' ,(all='Total' gender)*f=7.2;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ODS html close;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output :&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" frame="void" rules="none" summary="Page Layout" width="449"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl75" colspan="2" height="42" rowspan="2" style="border-right: .5pt solid black; border-bottom: .5pt solid black;" width="277"&gt; &lt;/TD&gt;&lt;TD class="xl79" rowspan="2" style="border-bottom: .5pt solid black;" width="54"&gt;Total&lt;/TD&gt;&lt;TD class="xl81" colspan="2" style="border-right: 1.0pt solid black; border-left: none;" width="118"&gt;Gender&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="21" style="border-top: none; border-left: none;" width="54"&gt;Male&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;" width="64"&gt;Female&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="21" style="border-top: none;" width="213"&gt;Base :All Respondents&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="64"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;" width="54"&gt;365&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;" width="54"&gt;227&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;" width="64"&gt;138&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="21" style="border-top: none;" width="213"&gt;Bottom2 Box[1/2]&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="64"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;" width="54"&gt;0.55&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="54"&gt;.&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;" width="64"&gt;1.45&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="21" style="border-top: none;" width="213"&gt;[2] Somewhat unfavorable&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="64"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;" width="54"&gt;0.55&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="54"&gt;.&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;" width="64"&gt;1.45&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="21" style="border-top: none;" width="213"&gt;[3] Neutral&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="64"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;" width="54"&gt;24.66&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;" width="54"&gt;19.82&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;" width="64"&gt;32.61&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="21" style="border-top: none;" width="213"&gt;[4] Somewhat favorable&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="64"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;" width="54"&gt;46.85&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;" width="54"&gt;48.9&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;" width="64"&gt;43.48&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="21" style="border-top: none;" width="213"&gt;Top2 Box[4/5]&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="64"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;" width="54"&gt;74.79&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;" width="54"&gt;80.18&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;" width="64"&gt;65.94&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl71" height="22" style="border-top: none;" width="213"&gt;[5] Very favorable&lt;/TD&gt;&lt;TD class="xl72" style="border-top: none; border-left: none;" width="64"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;" width="54"&gt;27.95&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;" width="54"&gt;31.28&lt;/TD&gt;&lt;TD align="right" class="xl74" style="border-top: none; border-left: none;" width="64"&gt;22.46&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Query : please explain syntax to delete the empty column before "Total" column.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Oct 2013 10:18:40 GMT</pubDate>
    <dc:creator>Pinky9</dc:creator>
    <dc:date>2013-10-21T10:18:40Z</dc:date>
    <item>
      <title>Deleting a col in output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Deleting-a-col-in-output/m-p/118477#M259523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the below syntax to generate the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODS html body='D:\SAS Project\Output\sample3.xls';&lt;/P&gt;&lt;P&gt;proc tabulate data=prac.parents;&lt;/P&gt;&lt;P&gt;format gender gender. c2_2 prefer.;&lt;/P&gt;&lt;P&gt;class age gender c2_2/mlf preloadfmt order=data ;&lt;/P&gt;&lt;P&gt;tables all='Base :All Respondents'*f=9.0*N='' c2_2=''*colpctn='' ,(all='Total' gender)*f=7.2;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ODS html close;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output :&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" frame="void" rules="none" summary="Page Layout" width="449"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl75" colspan="2" height="42" rowspan="2" style="border-right: .5pt solid black; border-bottom: .5pt solid black;" width="277"&gt; &lt;/TD&gt;&lt;TD class="xl79" rowspan="2" style="border-bottom: .5pt solid black;" width="54"&gt;Total&lt;/TD&gt;&lt;TD class="xl81" colspan="2" style="border-right: 1.0pt solid black; border-left: none;" width="118"&gt;Gender&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="21" style="border-top: none; border-left: none;" width="54"&gt;Male&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;" width="64"&gt;Female&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="21" style="border-top: none;" width="213"&gt;Base :All Respondents&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="64"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;" width="54"&gt;365&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;" width="54"&gt;227&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;" width="64"&gt;138&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="21" style="border-top: none;" width="213"&gt;Bottom2 Box[1/2]&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="64"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;" width="54"&gt;0.55&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="54"&gt;.&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;" width="64"&gt;1.45&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="21" style="border-top: none;" width="213"&gt;[2] Somewhat unfavorable&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="64"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;" width="54"&gt;0.55&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="54"&gt;.&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;" width="64"&gt;1.45&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="21" style="border-top: none;" width="213"&gt;[3] Neutral&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="64"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;" width="54"&gt;24.66&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;" width="54"&gt;19.82&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;" width="64"&gt;32.61&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="21" style="border-top: none;" width="213"&gt;[4] Somewhat favorable&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="64"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;" width="54"&gt;46.85&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;" width="54"&gt;48.9&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;" width="64"&gt;43.48&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="21" style="border-top: none;" width="213"&gt;Top2 Box[4/5]&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="64"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;" width="54"&gt;74.79&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;" width="54"&gt;80.18&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;" width="64"&gt;65.94&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl71" height="22" style="border-top: none;" width="213"&gt;[5] Very favorable&lt;/TD&gt;&lt;TD class="xl72" style="border-top: none; border-left: none;" width="64"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;" width="54"&gt;27.95&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;" width="54"&gt;31.28&lt;/TD&gt;&lt;TD align="right" class="xl74" style="border-top: none; border-left: none;" width="64"&gt;22.46&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Query : please explain syntax to delete the empty column before "Total" column.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 10:18:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Deleting-a-col-in-output/m-p/118477#M259523</guid>
      <dc:creator>Pinky9</dc:creator>
      <dc:date>2013-10-21T10:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a col in output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Deleting-a-col-in-output/m-p/118478#M259524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What empty column? It's not clear in the output what you mean.&lt;/P&gt;&lt;P&gt;Please search &lt;A href="http://support.sas.com/"&gt;http://support.sas.com&lt;/A&gt; and this community for a solution before posting any new question in community.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 10:38:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Deleting-a-col-in-output/m-p/118478#M259524</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2013-10-21T10:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a col in output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Deleting-a-col-in-output/m-p/118479#M259525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi LinusH,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please run the above code at your end with your dataset, to know the problem. If you look at the output , u will realize there is a empty col before "Total col" which is not reflected when pasted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 12:45:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Deleting-a-col-in-output/m-p/118479#M259525</guid>
      <dc:creator>Pinky9</dc:creator>
      <dc:date>2013-10-21T12:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a col in output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Deleting-a-col-in-output/m-p/118480#M259526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like your extra column is the unlabeled N and COLPCTN statistic.&amp;nbsp; The only way I see around this is to transpose the table.&amp;nbsp; Make the columns contain Total, Male, and Female, for example.&amp;nbsp; When blank statistic labels appear in the column dimension of the table, the label gets entirely removed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Somebody else may come up with another way around this, or perhaps the transposed version is acceptable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 13:29:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Deleting-a-col-in-output/m-p/118480#M259526</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2013-10-21T13:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a col in output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Deleting-a-col-in-output/m-p/118481#M259527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 13:48:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Deleting-a-col-in-output/m-p/118481#M259527</guid>
      <dc:creator>Pinky9</dc:creator>
      <dc:date>2013-10-21T13:48:09Z</dc:date>
    </item>
  </channel>
</rss>

