<?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: ODS RTF in batch mode, the file is empty in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-in-batch-mode-the-file-is-empty/m-p/377700#M18964</link>
    <description>&lt;P&gt;I'm not sure I follow your question. &amp;nbsp;You can certainly use ODS destination statements in batch mode to route results to files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods rtf file='C:\c.rtf' style=sapphire;&lt;BR /&gt;proc print data=sashelp.class;&lt;BR /&gt;ods rtf close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The look at the results in Word.&lt;BR /&gt;&lt;BR /&gt;PROC PLOT? &amp;nbsp;Seriously? &amp;nbsp;SGPLOT is base SAS and is much more modern.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jul 2017 11:17:53 GMT</pubDate>
    <dc:creator>WarrenKuhfeld</dc:creator>
    <dc:date>2017-07-20T11:17:53Z</dc:date>
    <item>
      <title>ODS RTF in batch mode, the file is empty</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-in-batch-mode-the-file-is-empty/m-p/377677#M18963</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In a prgm I use ODS RTF and proc plot to get a graph into a file. In SAS guide It works correctly.&lt;/P&gt;&lt;P&gt;But whenever I launch the prgm via batch mode, then the file is empty and in the log file&amp;nbsp;a message is "Device was not specified".&lt;/P&gt;&lt;P&gt;In the&amp;nbsp;support.sas I found this "The only exception for batch processing is having output sent to the output window."&lt;/P&gt;&lt;P&gt;So&amp;nbsp;how can I get my graph&amp;nbsp;via batch mode into the output window ?&lt;/P&gt;&lt;P&gt;thanks in advance for your help.&lt;/P&gt;&lt;P&gt;Nasser&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 08:50:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-in-batch-mode-the-file-is-empty/m-p/377677#M18963</guid>
      <dc:creator>Nasser_DRMCP</dc:creator>
      <dc:date>2017-07-20T08:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF in batch mode, the file is empty</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-in-batch-mode-the-file-is-empty/m-p/377700#M18964</link>
      <description>&lt;P&gt;I'm not sure I follow your question. &amp;nbsp;You can certainly use ODS destination statements in batch mode to route results to files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods rtf file='C:\c.rtf' style=sapphire;&lt;BR /&gt;proc print data=sashelp.class;&lt;BR /&gt;ods rtf close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The look at the results in Word.&lt;BR /&gt;&lt;BR /&gt;PROC PLOT? &amp;nbsp;Seriously? &amp;nbsp;SGPLOT is base SAS and is much more modern.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 11:17:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-in-batch-mode-the-file-is-empty/m-p/377700#M18964</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-07-20T11:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF in batch mode, the file is empty</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-in-batch-mode-the-file-is-empty/m-p/377710#M18965</link>
      <description>&lt;P&gt;You need to make sure that your batch configuration matches your Workspace Server configuration and the EG code in terms of graphic options. When you look closely at the code submitted by EG, you'll find some options that are always set by EG before your code is run.&lt;/P&gt;
&lt;P&gt;(eg&lt;/P&gt;
&lt;PRE&gt;9          OPTIONS DEV=ACTIVEX;
10         GOPTIONS XPIXELS=0 YPIXELS=0;
&lt;/PRE&gt;
&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 12:07:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-in-batch-mode-the-file-is-empty/m-p/377710#M18965</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-07-20T12:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF in batch mode, the file is empty</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-in-batch-mode-the-file-is-empty/m-p/377725#M18966</link>
      <description>&lt;P&gt;thanks warren.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is my code bellow. The rtf file is created but empty.I did not specified any device like&lt;/P&gt;&lt;P&gt;goptions ftext=zapf device=gif for example, wich device should I specify ? thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;ODS RTF startpage = yes FILE = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'S:\Etudes Rentabilités\Rentabilité 2017\Encours Payback\NASSER\SASLOG\chroniques.rtf'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; style = sapphire ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc gplot data = BEH_SUITE_INDIC ;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;format ratio &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;percent7.0&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;plot ratio * ANNEE_AMO_SUITE = &amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;v_AXE.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; / &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;legend = legend1&lt;/P&gt;&lt;P&gt;vaxis = axis1&lt;/P&gt;&lt;P&gt;haxis = axis2 ;&lt;/P&gt;&lt;P&gt;run ;&lt;/P&gt;&lt;P&gt;ODS RTF CLOSE ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 12:35:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-in-batch-mode-the-file-is-empty/m-p/377725#M18966</guid>
      <dc:creator>Nasser_DRMCP</dc:creator>
      <dc:date>2017-07-20T12:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF in batch mode, the file is empty</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-in-batch-mode-the-file-is-empty/m-p/377727#M18967</link>
      <description>&lt;P&gt;I wonder wich device because I can notice &amp;nbsp;"ERROR: Device was not specified" in the file log&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 12:38:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-in-batch-mode-the-file-is-empty/m-p/377727#M18967</guid>
      <dc:creator>Nasser_DRMCP</dc:creator>
      <dc:date>2017-07-20T12:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF in batch mode, the file is empty</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-in-batch-mode-the-file-is-empty/m-p/377757#M18968</link>
      <description>&lt;P&gt;It works ! I get a rtf file no empty, with a graph&lt;/P&gt;&lt;P&gt;By specifying device = png300 like this.&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;goptions reset = goptions device = png300 xmax=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;7&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;in ymax=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;9&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;in;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;but I didn't manage to store the output file on windows in C:\... but only in SAS guide in a folder.maybe a FTP should be done&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 13:35:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-in-batch-mode-the-file-is-empty/m-p/377757#M18968</guid>
      <dc:creator>Nasser_DRMCP</dc:creator>
      <dc:date>2017-07-20T13:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF in batch mode, the file is empty</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-in-batch-mode-the-file-is-empty/m-p/377758#M18969</link>
      <description>&lt;P&gt;If your SAS runs on a remote server (which I presume), then you can't directly access your C:\ drive from the SAS code.&lt;/P&gt;
&lt;P&gt;But you will find a task in EG that can transfer any file to/from the server. This can be used to download the newly created rtf to your PC.&lt;/P&gt;
&lt;P&gt;Look in the Data menu in EG.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 13:39:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-in-batch-mode-the-file-is-empty/m-p/377758#M18969</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-07-20T13:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF in batch mode, the file is empty</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-in-batch-mode-the-file-is-empty/m-p/377765#M18970</link>
      <description>&lt;P&gt;I forgot to specify that you should do&lt;/P&gt;&lt;P&gt;style = journal&lt;/P&gt;&lt;P&gt;to avoid an empty file&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 13:45:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-in-batch-mode-the-file-is-empty/m-p/377765#M18970</guid>
      <dc:creator>Nasser_DRMCP</dc:creator>
      <dc:date>2017-07-20T13:45:28Z</dc:date>
    </item>
  </channel>
</rss>

