<?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: Proc Report Flyover Text in PDF in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Flyover-Text-in-PDF/m-p/71965#M8229</link>
    <description>Hi:&lt;BR /&gt;
  If you were using SAS 9.2, you could use STYLE/REPLACE or STYLE/MERGE in your CALL DEFINE to apply the red foreground color.&lt;BR /&gt;
&lt;BR /&gt;
  In SAS 9.1.3, I believe your only choice would be to explicitly set the foreground where you set the flyover. It looks like _c4_ and _c7_ will always have some kind of flyover. You could do this (I may not have the logic of what you want to do quite correct -- I was just guessing):&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
&lt;BR /&gt;
  if _c7_ &amp;gt; &amp;amp;hi06 then do;&lt;BR /&gt;
     attrib='style={foreground=red flyover="Lost: ' || _c5_ || '"}';&lt;BR /&gt;
     call define ('_c7_',"style",attrib);&lt;BR /&gt;
  end;&lt;BR /&gt;
  else do;&lt;BR /&gt;
     attrib='style={foreground=black flyover="Lost: ' || _c5_ || '"}';&lt;BR /&gt;
     call define ('_c7_',"style",attrib);&lt;BR /&gt;
  end;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Wed, 16 Sep 2009 20:54:51 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2009-09-16T20:54:51Z</dc:date>
    <item>
      <title>Proc Report Flyover Text in PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Flyover-Text-in-PDF/m-p/71961#M8225</link>
      <description>I have the following proc report code:&lt;BR /&gt;
&lt;BR /&gt;
columns LVL_2 inj_yr, (lost1 avg_emp rate1);&lt;BR /&gt;
define LVL_2 / group 'Departments;&lt;BR /&gt;
define inj_yr / across '' ;&lt;BR /&gt;
define rate1 / analysis 'Rate' width=5;&lt;BR /&gt;
define avg_emp / analysis 'Avg Emp';&lt;BR /&gt;
define lost1 / analysis noprint;&lt;BR /&gt;
compute rate1;&lt;BR /&gt;
if _c4_&amp;gt;&amp;amp;hi05 then call define ('_c4_',"style","style=[foreground=red]");&lt;BR /&gt;
attrib='style={flyover="Lost: _c2_"}';&lt;BR /&gt;
call define('_c4_','style',attrib);&lt;BR /&gt;
endcomp;&lt;BR /&gt;
&lt;BR /&gt;
How do I reference the column _c2_? The flyover text works fine, but I'm not sure how to show the actual values for _c2_.&lt;BR /&gt;
Also, I lose foreground=red when I apply the flyover text. Is it possible to have both the flyover text and foreground=red?&lt;BR /&gt;
I output to PDF.&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Jason</description>
      <pubDate>Wed, 16 Sep 2009 18:43:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Flyover-Text-in-PDF/m-p/71961#M8225</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-09-16T18:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Flyover Text in PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Flyover-Text-in-PDF/m-p/71962#M8226</link>
      <description>Suggestion: it is not necessary to post a particular item in more than one forum.</description>
      <pubDate>Wed, 16 Sep 2009 18:55:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Flyover-Text-in-PDF/m-p/71962#M8226</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-09-16T18:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Flyover Text in PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Flyover-Text-in-PDF/m-p/71963#M8227</link>
      <description>_c2_ is a variable so you reference its value just like any other variable. In this case that means creating the attrib string using the concatenation operator.&lt;BR /&gt;
[pre]&lt;BR /&gt;
attrib='style={flyover="Lost: ' || _c2_ || '"}';&lt;BR /&gt;
[/pre]&lt;BR /&gt;
Now, regarding getting both style attributes at the same time.  What's happening is that each call to the DEFINE routine with a style element &lt;I&gt;replaces&lt;/I&gt; any previously defined style elements. The last call always wins. &lt;BR /&gt;
&lt;BR /&gt;
The solution, like so many solutions in this forum, depends on what version of SAS you're using. If you're using 9.2, PROC REPORT supports the "STYLE/MERGE" attribute.&lt;BR /&gt;
[pre]&lt;BR /&gt;
call define(_c4_, "style/merge", attrib);&lt;BR /&gt;
[/pre]&lt;BR /&gt;
"STYLE/MERGE" tells the DEFINE routine to &lt;I&gt;merge&lt;/I&gt; the style element with the existing style elements. With "STYLE/MERGE", the flyover attribute gets merged with the foreground attribute and so both are used.&lt;BR /&gt;
&lt;BR /&gt;
If you're using an earlier version of SAS, you have to specify both the flyover attribute and the foreground attribute in the same call to DEFINE.&lt;BR /&gt;
[pre]&lt;BR /&gt;
attrib='style={foreground=red flyover="Lost: ' || _c2_ || '"}';&lt;BR /&gt;
[/pre]&lt;BR /&gt;
Here's the doc for STYLE/MERGE and its companion STYLE/REPLACE:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a002473624.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a002473624.htm&lt;/A&gt;</description>
      <pubDate>Wed, 16 Sep 2009 20:10:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Flyover-Text-in-PDF/m-p/71963#M8227</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2009-09-16T20:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Flyover Text in PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Flyover-Text-in-PDF/m-p/71964#M8228</link>
      <description>I have SAS 9.1/EG 4.1&lt;BR /&gt;
The correct flyover values now appear, however, I'm not sure how to get foreground=red to be correctly applied:&lt;BR /&gt;
if _c7_&amp;gt;&amp;amp;hi06 then call define ('_c7_',"style","style=[foreground=red]");&lt;BR /&gt;
if _c4_&amp;gt;&amp;amp;hi05 then call define ('_c4_',"style","style=[foreground=red]");&lt;BR /&gt;
attrib='style={flyover="Lost: ' || _c2_ || '"}';&lt;BR /&gt;
call define('_c4_','style',attrib);&lt;BR /&gt;
attrib='style={flyover="Lost: ' || _c5_ || '"}';&lt;BR /&gt;
call define('_c7_','style',attrib);&lt;BR /&gt;
&lt;BR /&gt;
Thank you.</description>
      <pubDate>Wed, 16 Sep 2009 20:39:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Flyover-Text-in-PDF/m-p/71964#M8228</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-09-16T20:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Flyover Text in PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Flyover-Text-in-PDF/m-p/71965#M8229</link>
      <description>Hi:&lt;BR /&gt;
  If you were using SAS 9.2, you could use STYLE/REPLACE or STYLE/MERGE in your CALL DEFINE to apply the red foreground color.&lt;BR /&gt;
&lt;BR /&gt;
  In SAS 9.1.3, I believe your only choice would be to explicitly set the foreground where you set the flyover. It looks like _c4_ and _c7_ will always have some kind of flyover. You could do this (I may not have the logic of what you want to do quite correct -- I was just guessing):&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
&lt;BR /&gt;
  if _c7_ &amp;gt; &amp;amp;hi06 then do;&lt;BR /&gt;
     attrib='style={foreground=red flyover="Lost: ' || _c5_ || '"}';&lt;BR /&gt;
     call define ('_c7_',"style",attrib);&lt;BR /&gt;
  end;&lt;BR /&gt;
  else do;&lt;BR /&gt;
     attrib='style={foreground=black flyover="Lost: ' || _c5_ || '"}';&lt;BR /&gt;
     call define ('_c7_',"style",attrib);&lt;BR /&gt;
  end;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Wed, 16 Sep 2009 20:54:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Flyover-Text-in-PDF/m-p/71965#M8229</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-09-16T20:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Flyover Text in PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Flyover-Text-in-PDF/m-p/71966#M8230</link>
      <description>This works well.&lt;BR /&gt;
Thank you.</description>
      <pubDate>Wed, 16 Sep 2009 21:55:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Flyover-Text-in-PDF/m-p/71966#M8230</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-09-16T21:55:59Z</dc:date>
    </item>
  </channel>
</rss>

