<?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 Code and text RTF to PDF in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Code-and-text-RTF-to-PDF/m-p/880867#M348052</link>
    <description>&lt;P&gt;Good morning,&lt;BR /&gt;We are trying through SAS code in SAS Studio that a program that exports RTF file does the same with PDF file.&lt;BR /&gt;We can't run scripts. It would be only through code.&lt;/P&gt;&lt;P&gt;It had occurred to us to change the ods RTF option to ods PDF by putting all the code in a macro,&lt;BR /&gt;but the code is too dense to change each option. do you know any way?&lt;BR /&gt;Thank you very much and greetings.&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jun 2023 07:40:44 GMT</pubDate>
    <dc:creator>Cristina_inet</dc:creator>
    <dc:date>2023-06-15T07:40:44Z</dc:date>
    <item>
      <title>Code and text RTF to PDF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Code-and-text-RTF-to-PDF/m-p/880867#M348052</link>
      <description>&lt;P&gt;Good morning,&lt;BR /&gt;We are trying through SAS code in SAS Studio that a program that exports RTF file does the same with PDF file.&lt;BR /&gt;We can't run scripts. It would be only through code.&lt;/P&gt;&lt;P&gt;It had occurred to us to change the ods RTF option to ods PDF by putting all the code in a macro,&lt;BR /&gt;but the code is too dense to change each option. do you know any way?&lt;BR /&gt;Thank you very much and greetings.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 07:40:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Code-and-text-RTF-to-PDF/m-p/880867#M348052</guid>
      <dc:creator>Cristina_inet</dc:creator>
      <dc:date>2023-06-15T07:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Code and text RTF to PDF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Code-and-text-RTF-to-PDF/m-p/880874#M348057</link>
      <description>&lt;P&gt;This is what the macro language is made for.&lt;/P&gt;
&lt;P&gt;Search all format-specific ODS statements and options, and make them conditional. Note that you do not need a macro definition for this, %IF %THEN %DO %EÑD %ELSE %DO %END can be used in "open code".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 08:48:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Code-and-text-RTF-to-PDF/m-p/880874#M348057</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-06-15T08:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Code and text RTF to PDF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Code-and-text-RTF-to-PDF/m-p/880948#M348099</link>
      <description>&lt;P&gt;More details may be needed. Do you have more than one ODS RTF or ODS PDF statement?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can generate both type of output if single ODS statements easily:&lt;/P&gt;
&lt;PRE&gt;ods rtf file="&amp;lt;path&amp;gt;\documentname.rtf" &amp;lt;other rtf options&amp;gt;;
ods pdf file="&amp;lt;path&amp;gt;\documentname.pdf" &amp;lt;other pdf options&amp;gt;;

&amp;lt;one or more procs or data steps creating ods output&amp;gt;

ods pdf close;
ods rtf clsoe;&lt;/PRE&gt;
&lt;P&gt;Which ods options are involved where? Details do matter. Even a skeleton of what you want to generate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might also investigate Proc Document which can be used to assemble already generated output into a single document. So generate all proc output and then use Proc Document to create the different versions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 15:16:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Code-and-text-RTF-to-PDF/m-p/880948#M348099</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-06-15T15:16:27Z</dc:date>
    </item>
  </channel>
</rss>

