<?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: Destination Specific preImage values in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Destination-Specific-preImage-values/m-p/42934#M5756</link>
    <description>Hi, Don:&lt;BR /&gt;
  We showed destination-specific syntax similar to this in the ODS: The Basics and Beyond book:&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods html path='.'(url=none)&lt;BR /&gt;
         file='kermitrocks2.html' style=sasweb;&lt;BR /&gt;
ods rtf file='bigbirdrocks2.rtf';&lt;BR /&gt;
                         &lt;BR /&gt;
title '^{DEST [HTML] ^{style&lt;FONT color="purple"&gt; Kermit the Frog Rocks }}'&lt;BR /&gt;
      '^{DEST [RTF] ^{style[fontsize=20pt]Big Bird Rocks }}';&lt;BR /&gt;
                  &lt;BR /&gt;
proc print data=sashelp.class(obs=3);&lt;BR /&gt;
run;&lt;BR /&gt;
                     &lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
And, when you run this...the HTML file title has Kermit rocking in purple and the RTF file has Big Bird rocking in 20pt.&lt;BR /&gt;
                &lt;BR /&gt;
But, when I try this&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods html path='.'(url=none)&lt;BR /&gt;
         file='kermitrocks3.html' style=sasweb;&lt;BR /&gt;
ods tagsets.rtf file='bigbirdrocks3_new.rtf';&lt;BR /&gt;
ods rtf file='bigbirdrocks3_orig.rtf';&lt;BR /&gt;
                 &lt;BR /&gt;
title '^{DEST [HTML] ^{style[preimage="kermit2.jpg"] Kermit the Frog Rocks }}'&lt;BR /&gt;
      '^{DEST [RTF] ^{style[preimage="c:\temp\bigbird.jpg"] Big Bird Rocks }}';&lt;BR /&gt;
                &lt;BR /&gt;
proc print data=sashelp.class(obs=3);&lt;BR /&gt;
run;&lt;BR /&gt;
        &lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
   &lt;BR /&gt;
I only get Kermit's picture in the HTML file. The image for Big Bird is not showing up in the "original" RTF file. However, in 9.2, I do get Big Bird's picture showing in the TAGSETS.RTF output file.&lt;BR /&gt;
&lt;BR /&gt;
So you (sort of) have a solution for HTML and RTF if you use TAGSETS.RTF. &lt;BR /&gt;
&lt;BR /&gt;
I ran out of Sesame Street characters to test with... but the new style syntax did not work for me for PDF, although the old style syntax did work for PDF.&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods pdf file='bigbirdrocks_oldstyle.pdf';&lt;BR /&gt;
                 &lt;BR /&gt;
title '^S={preimage="c:\temp\bigbird.jpg"} Big Bird Rocks';&lt;BR /&gt;
         &lt;BR /&gt;
proc print data=sashelp.class(obs=3);&lt;BR /&gt;
run;&lt;BR /&gt;
           &lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
I think that's because I remember something about {DEST} only working for markup destinations (like RTF and HTML). Even though this note:&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/37/077.html" target="_blank"&gt;http://support.sas.com/kb/37/077.html&lt;/A&gt; implies that the capability will work for PDF, the example they show in the full code tab only shows HTML and RTF.&lt;BR /&gt;
&lt;BR /&gt;
You might want to check with Tech Support on this. I'm wondering whether there's a CSS way to specify the image or some other workaround. I suppose that having 3 separate invocations with 3 separate TITLE statements isn't going to work for your program design???&lt;BR /&gt;
&lt;BR /&gt;
cynthia&lt;/FONT&gt;</description>
    <pubDate>Thu, 01 Jul 2010 15:20:28 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2010-07-01T15:20:28Z</dc:date>
    <item>
      <title>Destination Specific preImage values</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Destination-Specific-preImage-values/m-p/42933#M5755</link>
      <description>This is an ODS (SAS 9.2) question that is specific to the Stored Process server but am asking it here since it is more about ODS that BI/EBI.&lt;BR /&gt;
&lt;BR /&gt;
I have a set of stored processes that stream HTML back to the user's browser, but also create pdf and rtf versions of the reports that are available via the replay program.&lt;BR /&gt;
&lt;BR /&gt;
I want to use the preimage style attribute to insert an image into title line 1. However for the HTML destination the name/path for the image has to be the web accessible path on the web server to the image since ODS is generating an img tag. However for the PDF and RTF destinations, the  name/path for the image has to be the physical location on the SAS Compute Server.&lt;BR /&gt;
&lt;BR /&gt;
I can put the images on both servers, but I don't see how to specify different values in a single title statement. Someone told me that inline formatting in 9.2 might be able to do this.&lt;BR /&gt;
&lt;BR /&gt;
Any/all input/help/advice is appreciated.</description>
      <pubDate>Thu, 01 Jul 2010 12:52:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Destination-Specific-preImage-values/m-p/42933#M5755</guid>
      <dc:creator>DonH</dc:creator>
      <dc:date>2010-07-01T12:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Destination Specific preImage values</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Destination-Specific-preImage-values/m-p/42934#M5756</link>
      <description>Hi, Don:&lt;BR /&gt;
  We showed destination-specific syntax similar to this in the ODS: The Basics and Beyond book:&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods html path='.'(url=none)&lt;BR /&gt;
         file='kermitrocks2.html' style=sasweb;&lt;BR /&gt;
ods rtf file='bigbirdrocks2.rtf';&lt;BR /&gt;
                         &lt;BR /&gt;
title '^{DEST [HTML] ^{style&lt;FONT color="purple"&gt; Kermit the Frog Rocks }}'&lt;BR /&gt;
      '^{DEST [RTF] ^{style[fontsize=20pt]Big Bird Rocks }}';&lt;BR /&gt;
                  &lt;BR /&gt;
proc print data=sashelp.class(obs=3);&lt;BR /&gt;
run;&lt;BR /&gt;
                     &lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
And, when you run this...the HTML file title has Kermit rocking in purple and the RTF file has Big Bird rocking in 20pt.&lt;BR /&gt;
                &lt;BR /&gt;
But, when I try this&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods html path='.'(url=none)&lt;BR /&gt;
         file='kermitrocks3.html' style=sasweb;&lt;BR /&gt;
ods tagsets.rtf file='bigbirdrocks3_new.rtf';&lt;BR /&gt;
ods rtf file='bigbirdrocks3_orig.rtf';&lt;BR /&gt;
                 &lt;BR /&gt;
title '^{DEST [HTML] ^{style[preimage="kermit2.jpg"] Kermit the Frog Rocks }}'&lt;BR /&gt;
      '^{DEST [RTF] ^{style[preimage="c:\temp\bigbird.jpg"] Big Bird Rocks }}';&lt;BR /&gt;
                &lt;BR /&gt;
proc print data=sashelp.class(obs=3);&lt;BR /&gt;
run;&lt;BR /&gt;
        &lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
   &lt;BR /&gt;
I only get Kermit's picture in the HTML file. The image for Big Bird is not showing up in the "original" RTF file. However, in 9.2, I do get Big Bird's picture showing in the TAGSETS.RTF output file.&lt;BR /&gt;
&lt;BR /&gt;
So you (sort of) have a solution for HTML and RTF if you use TAGSETS.RTF. &lt;BR /&gt;
&lt;BR /&gt;
I ran out of Sesame Street characters to test with... but the new style syntax did not work for me for PDF, although the old style syntax did work for PDF.&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods pdf file='bigbirdrocks_oldstyle.pdf';&lt;BR /&gt;
                 &lt;BR /&gt;
title '^S={preimage="c:\temp\bigbird.jpg"} Big Bird Rocks';&lt;BR /&gt;
         &lt;BR /&gt;
proc print data=sashelp.class(obs=3);&lt;BR /&gt;
run;&lt;BR /&gt;
           &lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
I think that's because I remember something about {DEST} only working for markup destinations (like RTF and HTML). Even though this note:&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/37/077.html" target="_blank"&gt;http://support.sas.com/kb/37/077.html&lt;/A&gt; implies that the capability will work for PDF, the example they show in the full code tab only shows HTML and RTF.&lt;BR /&gt;
&lt;BR /&gt;
You might want to check with Tech Support on this. I'm wondering whether there's a CSS way to specify the image or some other workaround. I suppose that having 3 separate invocations with 3 separate TITLE statements isn't going to work for your program design???&lt;BR /&gt;
&lt;BR /&gt;
cynthia&lt;/FONT&gt;</description>
      <pubDate>Thu, 01 Jul 2010 15:20:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Destination-Specific-preImage-values/m-p/42934#M5756</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-07-01T15:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Destination Specific preImage values</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Destination-Specific-preImage-values/m-p/42935#M5757</link>
      <description>Thanks Cynthia.&lt;BR /&gt;
&lt;BR /&gt;
I get different results that you did. For me (in 9.2), ods rtf seems to work and ods tagsets.rtf does not.&lt;BR /&gt;
&lt;BR /&gt;
And if I try PDF, it includes the text for all three in the title.&lt;BR /&gt;
&lt;BR /&gt;
I will ask TS to comment on/update the KB article to include a working example for 9.2 that includes rtf, pdf and html.</description>
      <pubDate>Thu, 01 Jul 2010 16:35:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Destination-Specific-preImage-values/m-p/42935#M5757</guid>
      <dc:creator>DonH</dc:creator>
      <dc:date>2010-07-01T16:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Destination Specific preImage values</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Destination-Specific-preImage-values/m-p/42936#M5758</link>
      <description>Hi, Don:&lt;BR /&gt;
  Very odd, indeed. I was also running SAS 9.2 -- non-Platform. See my log. And, I realized that I never put a DEST[tagsets,rtf] in my code and I still -do- get big bird's pix in the TAGSETS.RTF file. But, when I use THIS title statement:&lt;BR /&gt;
[pre]&lt;BR /&gt;
             &lt;BR /&gt;
title '^{DEST [HTML] ^{style[preimage="kermit2.jpg"] Kermit the Frog Rocks }}'&lt;BR /&gt;
      '^{DEST [RTF] ^{style[preimage="c:\temp\bigbird.jpg"] Big Bird Rocks }}'&lt;BR /&gt;
      '^{DEST [TAGSETS.RTF] ^{style[preimage="c:\temp\mackintosh_rose.jpg"] Big Bird Rocks }}'&lt;BR /&gt;
;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                  &lt;BR /&gt;
Then I -do- get the mackintosh_rose pix in the TAGSETS.RTF file (and still nothing in the ODS RTF file). I wonder whether there's some difference in what you have on your server???? Or, I wonder whether your &amp;amp;_ODSDEST is somehow being changed???&lt;BR /&gt;
            &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]  &lt;BR /&gt;
1725  ods html path='.'(url=none)&lt;BR /&gt;
1726           file='kermitrocks3.html' style=sasweb;&lt;BR /&gt;
NOTE: Writing HTML Body file: kermitrocks3.html&lt;BR /&gt;
1727  ods tagsets.rtf file='bigbirdrocks3_new.rtf';&lt;BR /&gt;
NOTE: Writing TAGSETS.RTF Body file: bigbirdrocks3_new.rtf&lt;BR /&gt;
1728  ods rtf file='bigbirdrocks3_orig.rtf';&lt;BR /&gt;
NOTE: Writing RTF Body file: bigbirdrocks3_orig.rtf&lt;BR /&gt;
1729             &lt;BR /&gt;
1730  %put -- my version is: &amp;amp;sysvlong4;&lt;BR /&gt;
-- my version is: 9.02.02M2P09012009&lt;BR /&gt;
1731   &lt;BR /&gt;
1732  title '^{DEST [HTML] ^{style[preimage="kermit2.jpg"] Kermit the Frog Rocks }}'&lt;BR /&gt;
1733        '^{DEST [RTF] ^{style[preimage="c:\temp\bigbird.jpg"] Big Bird Rocks }}';&lt;BR /&gt;
1734      &lt;BR /&gt;
1735  proc print data=sashelp.class(obs=3);&lt;BR /&gt;
1736  run;&lt;BR /&gt;
       &lt;BR /&gt;
NOTE: PROCEDURE PRINT used (Total process time):&lt;BR /&gt;
      real time           2.53 seconds&lt;BR /&gt;
      cpu time            0.07 seconds&lt;BR /&gt;
                    &lt;BR /&gt;
NOTE: There were 3 observations read from the data set SASHELP.CLASS.&lt;BR /&gt;
                &lt;BR /&gt;
1737&lt;BR /&gt;
1738  ods _all_ close;&lt;BR /&gt;
&lt;BR /&gt;
[/pre]</description>
      <pubDate>Thu, 01 Jul 2010 17:32:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Destination-Specific-preImage-values/m-p/42936#M5758</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-07-01T17:32:05Z</dc:date>
    </item>
  </channel>
</rss>

