<?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 Having trouble adding a variable to the title in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Having-trouble-adding-a-variable-to-the-title/m-p/23739#M4065</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks again Cynthia!&amp;nbsp; Those were the two steps I was missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lori&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jun 2011 16:49:43 GMT</pubDate>
    <dc:creator>LAtwood</dc:creator>
    <dc:date>2011-06-30T16:49:43Z</dc:date>
    <item>
      <title>Having trouble adding a variable to the title</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Having-trouble-adding-a-variable-to-the-title/m-p/23737#M4063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having a problem adding "pay_period" variable to a title using Proc Report. I am trying to use #byval.&amp;nbsp; This is a stored process.&lt;/P&gt;&lt;P&gt;I have attached the code.&lt;/P&gt;&lt;P&gt;﻿Thanks&lt;/P&gt;&lt;P&gt;Lori&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2011 15:54:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Having-trouble-adding-a-variable-to-the-title/m-p/23737#M4063</guid>
      <dc:creator>LAtwood</dc:creator>
      <dc:date>2011-06-30T15:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Having trouble adding a variable to the title</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Having-trouble-adding-a-variable-to-the-title/m-p/23738#M4064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Really simple things to check:&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1) the use of #byval reuires that you have a BY statement in your code. So even if you have PAY_PERIOD in your COLUMN and even if you have the reference to #BYVAL in your TITLE statement, you still need to use a BY statement&amp;nbsp; inside the PROC REPORT code, such as:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;BY PAY_PERIOD;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;also in your PROC REPORT step in order for the reference in the title statement to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; 2) Usually, in order to use #BYVAL/#BYLINE/etc, you also need:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;OPTIONS NOBYLINE;&lt;/SPAN&gt; before the step that contains the special by variable reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Generally, the use of the BY variable special strings works very well with ODS -- so even in a stored process, you should see the use of the information (do note that in order to use a BY statement in PROC REPORT, the data must be sorted, by PAY_PERIOD). If you have checked #1 and #2 and your BY reference still does not work, you should open a track with Tech Support on this matter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2011 16:40:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Having-trouble-adding-a-variable-to-the-title/m-p/23738#M4064</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-06-30T16:40:29Z</dc:date>
    </item>
    <item>
      <title>Having trouble adding a variable to the title</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Having-trouble-adding-a-variable-to-the-title/m-p/23739#M4065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks again Cynthia!&amp;nbsp; Those were the two steps I was missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lori&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2011 16:49:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Having-trouble-adding-a-variable-to-the-title/m-p/23739#M4065</guid>
      <dc:creator>LAtwood</dc:creator>
      <dc:date>2011-06-30T16:49:43Z</dc:date>
    </item>
  </channel>
</rss>

