<?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: Trouble with setting calculated Column Header to reflect value of &amp;quot;Across&amp;quot; variable in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Trouble-with-setting-calculated-Column-Header-to-reflect-value/m-p/115052#M10202</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi, I'm having trouble visualizing what you mean when you say, "I want the subtotals to print the column header" If you have a variable that is a computed item under an ACROSS variable, you only have 1 item, possibly repeated as many times as you have ACROSS values. For example, in the code below, I have HEIGHT, WEIGHT and TOTAL "under" the SEX variable. Just as I cannot give two different labels to HEIGHT and WEIGHT, I cannot give two different labels to TOTAL. (See screenshot.)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp; So, I'm not sure what exactly you are trying to accomplish. You could apply different labels to the 'F' and 'M' values for SEX with a user-defined format for the character values, but HEIGHT, WEIGHT and TOTAL, in my example will be displayed with the SAME label under each unique value of the ACROSS variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods html file='c:\temp\across_header.html' style=sasweb;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; proc report data=sashelp.class nowd;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; column age sex,(height weight total);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define age / group;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define sex / across;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define total / computed 'Computed Total';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define height / sum;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define weight / sum;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; compute total;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _c4_ = _c2_ + _c3_;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _c7_ = _c5_ + _c6_;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endcomp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods html close;&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11175i2CC2F1CCFC01C923/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="across_headers_same.png" title="across_headers_same.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 May 2012 05:28:02 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2012-05-15T05:28:02Z</dc:date>
    <item>
      <title>Trouble with setting calculated Column Header to reflect value of "Across" variable</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Trouble-with-setting-calculated-Column-Header-to-reflect-value/m-p/115051#M10201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #17365d; font-size: 9pt;"&gt;Have an issue that I can’t see to resolve.&amp;nbsp; I am using an across variable.&amp;nbsp; I have two columns which are sub totals of the across value.&amp;nbsp; I have a subtotal for FEMALEs and another subtotal for MALES which I call gtotal.&amp;nbsp;&amp;nbsp; I want the subtotals to print the column header of “Total Female” Under the female header and the “Total Male” under Male header.&amp;nbsp; I can get the columns placed exactly where I want them.&amp;nbsp; But I don’t know how to place the descriptive title of Female or Male in the corresponding header.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #17365d; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #17365d; font-size: 9pt;"&gt;I was thinking to do with this with a compute statement and conditionally set the title in the Call define, but I have not been successful.&amp;nbsp; Do you have any suggestions??&amp;nbsp; Should I just contact Tech Support. &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Tahoma','sans-serif'; color: #17365d; font-size: 9pt;"&gt;I have attached the code as I cannot paste it for some reason!&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 22:24:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Trouble-with-setting-calculated-Column-Header-to-reflect-value/m-p/115051#M10201</guid>
      <dc:creator>LindaH1120</dc:creator>
      <dc:date>2012-05-14T22:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with setting calculated Column Header to reflect value of "Across" variable</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Trouble-with-setting-calculated-Column-Header-to-reflect-value/m-p/115052#M10202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi, I'm having trouble visualizing what you mean when you say, "I want the subtotals to print the column header" If you have a variable that is a computed item under an ACROSS variable, you only have 1 item, possibly repeated as many times as you have ACROSS values. For example, in the code below, I have HEIGHT, WEIGHT and TOTAL "under" the SEX variable. Just as I cannot give two different labels to HEIGHT and WEIGHT, I cannot give two different labels to TOTAL. (See screenshot.)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp; So, I'm not sure what exactly you are trying to accomplish. You could apply different labels to the 'F' and 'M' values for SEX with a user-defined format for the character values, but HEIGHT, WEIGHT and TOTAL, in my example will be displayed with the SAME label under each unique value of the ACROSS variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods html file='c:\temp\across_header.html' style=sasweb;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; proc report data=sashelp.class nowd;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; column age sex,(height weight total);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define age / group;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define sex / across;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define total / computed 'Computed Total';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define height / sum;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define weight / sum;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; compute total;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _c4_ = _c2_ + _c3_;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _c7_ = _c5_ + _c6_;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endcomp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods html close;&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11175i2CC2F1CCFC01C923/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="across_headers_same.png" title="across_headers_same.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 05:28:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Trouble-with-setting-calculated-Column-Header-to-reflect-value/m-p/115052#M10202</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-05-15T05:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with setting calculated Column Header to reflect value of "Across" variable</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Trouble-with-setting-calculated-Column-Header-to-reflect-value/m-p/115053#M10203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for not being clear!&amp;nbsp; I want the column header to state "Total Female" under the across female columns and "Total Male" under the male across columns.&amp;nbsp; I just want the verbage in the header display either Female or Male for this calculated column. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My resolution will be to pre-total female and male and feed those results to the PROC REPORT.&amp;nbsp; Then I should be able to label the header titles whatever I wish.&amp;nbsp; However, I didn't want to have to do that, since it seemed so easy to use the calculated columns. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As always, thank you so much for your quick response&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 13:20:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Trouble-with-setting-calculated-Column-Header-to-reflect-value/m-p/115053#M10203</guid>
      <dc:creator>LindaH1120</dc:creator>
      <dc:date>2012-05-15T13:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with setting calculated Column Header to reflect value of "Across" variable</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Trouble-with-setting-calculated-Column-Header-to-reflect-value/m-p/115054#M10204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc format ;&lt;BR /&gt;value $gen "F" = "TOTAL FEMALE"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "M" = "TOTAL MALE";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc report data=sashelp.class nowd;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; column age sex,(height weight total);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define age / group;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define sex / across;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define total / computed 'Computed Total';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define height / sum;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define weight / sum;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; compute total;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _c4_ = _c2_ + _c3_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _c7_ = _c5_ + _c6_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endcomp;&lt;BR /&gt;format sex $gen.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 10:51:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Trouble-with-setting-calculated-Column-Header-to-reflect-value/m-p/115054#M10204</guid>
      <dc:creator>bharathtuppad</dc:creator>
      <dc:date>2015-05-05T10:51:59Z</dc:date>
    </item>
  </channel>
</rss>

