<?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: Use a formula in a TITLE statement in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Use-a-formula-in-a-TITLE-statement/m-p/306983#M61073</link>
    <description>&lt;P&gt;%SYSFUNC does not support the PUT function. &amp;nbsp;You can switch to the PUTN function instead. &amp;nbsp;Once you do that, you may have to experiment with the third parameter (it may need to go in quotes).&lt;/P&gt;</description>
    <pubDate>Mon, 24 Oct 2016 22:45:12 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2016-10-24T22:45:12Z</dc:date>
    <item>
      <title>Use a formula in a TITLE statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Use-a-formula-in-a-TITLE-statement/m-p/306977#M61071</link>
      <description>&lt;P&gt;I am trying to create a table using the following code using SAS 9.4. &amp;nbsp;The parameter value &amp;amp;rptyr is a four-character integer (representing the year of the report). &amp;nbsp;I would like TITLE3 to provide the following result, and the code I am using below is only the most recent of several unsuccessful approaches at achieving this result:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Race and Gender Breakdown of All Students from Fall 2015&amp;nbsp;to Spring 2016&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data=srkdemog_ath out=srkdemog_all;
	var athlete;
	class state campus_code campus_desc ethnicity gender bid;
	table all='College' ethnicity='' gender='',
		(all='College' state=''*campus_code='Campus'*campus_desc='')*athlete=''*n='Total'*f=comma8.;
	title 'Student Right-to-Know Graduation Rate';
	title2 'Student Athletes';
	title3 "Race and Gender Breakdown of All Students from Fall %sysfunc(put(&amp;amp;rptyr-1,4.)) to Spring &amp;amp;rptyr";
	run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any assistance towards achieving this goal would be welcome. &amp;nbsp;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Marc&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 21:55:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Use-a-formula-in-a-TITLE-statement/m-p/306977#M61071</guid>
      <dc:creator>MFLoGrasso</dc:creator>
      <dc:date>2016-10-24T21:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Use a formula in a TITLE statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Use-a-formula-in-a-TITLE-statement/m-p/306980#M61072</link>
      <description>&lt;P&gt;%EVAL instead of PUT and SYSFUNC?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 22:15:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Use-a-formula-in-a-TITLE-statement/m-p/306980#M61072</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-10-24T22:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Use a formula in a TITLE statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Use-a-formula-in-a-TITLE-statement/m-p/306983#M61073</link>
      <description>&lt;P&gt;%SYSFUNC does not support the PUT function. &amp;nbsp;You can switch to the PUTN function instead. &amp;nbsp;Once you do that, you may have to experiment with the third parameter (it may need to go in quotes).&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 22:45:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Use-a-formula-in-a-TITLE-statement/m-p/306983#M61073</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-10-24T22:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Use a formula in a TITLE statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Use-a-formula-in-a-TITLE-statement/m-p/307138#M61077</link>
      <description>This worked perfectly.  Thanks!</description>
      <pubDate>Tue, 25 Oct 2016 14:25:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Use-a-formula-in-a-TITLE-statement/m-p/307138#M61077</guid>
      <dc:creator>MFLoGrasso</dc:creator>
      <dc:date>2016-10-25T14:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Use a formula in a TITLE statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Use-a-formula-in-a-TITLE-statement/m-p/307139#M61078</link>
      <description>I tried this as well, since you took the time to answer, and using PUTN instead of PUT also worked, so thank you!</description>
      <pubDate>Tue, 25 Oct 2016 14:26:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Use-a-formula-in-a-TITLE-statement/m-p/307139#M61078</guid>
      <dc:creator>MFLoGrasso</dc:creator>
      <dc:date>2016-10-25T14:26:27Z</dc:date>
    </item>
  </channel>
</rss>

