<?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 empty, settings gone wrong? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ODS-rtf-empty-settings-gone-wrong/m-p/563550#M158000</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;wrote:&lt;/P&gt;&lt;P&gt;And what does the LOG show for your Proc Report code?&lt;/P&gt;&lt;P&gt;I suspect you will see one or more instances of data set(s) with 0 observations for the entire job. If the data set&amp;nbsp;xxx_ut has no observations there is nothing for proc report to output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may have to turn on the options MPRINT and SYMBOLGEN prior to executing your macros to get more details of what is going on.&lt;/P&gt;&lt;P&gt;**************&lt;/P&gt;&lt;P&gt;Many thank for feedback!&lt;/P&gt;&lt;P&gt;The log says:&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;NOTE: Writing RTF Body file: C:\Projekt\XX\Output\XX_4juni2019.rtf&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;NOTE: There were 8 observations read from the data set WORK.XXX_UT.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: PROCEDURE REPORT used (Total process time):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;real time 0.12 seconds&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;cpu time 0.14 seconds&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;so there is data (going crazy) !!&lt;/P&gt;&lt;P&gt;I'll try MPRINT...&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jun 2019 15:28:49 GMT</pubDate>
    <dc:creator>kiranp</dc:creator>
    <dc:date>2019-06-04T15:28:49Z</dc:date>
    <item>
      <title>ODS rtf empty, settings gone wrong?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-rtf-empty-settings-gone-wrong/m-p/563474#M157976</link>
      <description>&lt;P&gt;When I create a RTF file but it ends up empty!&lt;/P&gt;&lt;P&gt;I have done this a thousand times before and have never had a problem before.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The difference this time, is that I have run two different macros previously in the program. What could have happened? I'm lost.&lt;/P&gt;&lt;P&gt;While searching for an answer within the program, I have notice that after I have ran the macros, I cannot get any output to the 'results viewer' nor the output window. I guess it is a setting somewhere, somehow, but I cannot figure out what is wrong.&lt;/P&gt;&lt;DIV class="lia-message-heading lia-component-message-header"&gt;&lt;DIV class="lia-quilt-row lia-quilt-row-standard"&gt;&lt;DIV class="lia-quilt-column lia-quilt-column-20 lia-quilt-column-left"&gt;&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-left"&gt;&lt;DIV class="lia-message-subject"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="lia-message-body lia-component-body"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The macros I have used can be found here&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/onlinedoc/stat/ex_code/121/templft2.html" target="_blank" rel="nofollow noopener noreferrer"&gt;http://support.sas.com/documentation/onlinedoc/stat/ex_code/121/templft2.html&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;and here&amp;nbsp;&lt;A href="https://stats.idre.ucla.edu/wp-content/uploads/2016/02/bcconf.txt" target="_blank" rel="nofollow noopener noreferrer"&gt;https://stats.idre.ucla.edu/wp-content/uploads/2016/02/bcconf.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Here is the 'standard' rtf code I have used:&lt;/P&gt;&lt;P&gt;ods listing close;&lt;/P&gt;&lt;P&gt;ods rtf file="S:\Projekt\XXX\Output\XXX_4juni2019.rtf";&lt;/P&gt;&lt;P&gt;ods escapechar='^';&lt;BR /&gt;title1 'Title';&lt;BR /&gt;proc report data=xxx_ut&lt;BR /&gt;style(report)={font_face=times font_size=1 bordercolor=black}&lt;BR /&gt;style(column)={just=left font_face=times background=white foreground=black font_size=1 bordercolor=black cellwidth=.6in}&lt;BR /&gt;style(header)={just=center font_face=times background=white cellheight=.6in foreground=black font_size=1 bordercolor=black cellwidth=.6in};&lt;BR /&gt;COLUMN sorta cat1 pfs;&lt;BR /&gt;DEFINE sorta / order order=internal noprint;&lt;BR /&gt;DEFINE cat1 / display style(column)={just=left cellwidth=20%}''&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;style(header)={just=left cellwidth=20%} ;&lt;BR /&gt;DEFINE pfs / display style(column)={just=left cellwidth=20%}''&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;style(header)={just=left cellwidth=20%} ;&lt;/P&gt;&lt;P&gt;run;title;footnote;&lt;/P&gt;&lt;P&gt;ODS rtf close;&lt;BR /&gt;ODS listing;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for advice or ideas.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 12:05:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-rtf-empty-settings-gone-wrong/m-p/563474#M157976</guid>
      <dc:creator>kiranp</dc:creator>
      <dc:date>2019-06-04T12:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: ODS rtf empty, settings gone wrong?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-rtf-empty-settings-gone-wrong/m-p/563546#M157999</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/109703"&gt;@kiranp&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;When I create a RTF file but it ends up empty!&lt;/P&gt;
&lt;P&gt;I have done this a thousand times before and have never had a problem before.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The difference this time, is that I have run two different macros previously in the program. What could have happened? I'm lost.&lt;/P&gt;
&lt;P&gt;While searching for an answer within the program, I have notice that after I have ran the macros, I cannot get any output to the 'results viewer' nor the output window. I guess it is a setting somewhere, somehow, but I cannot figure out what is wrong.&lt;/P&gt;
&lt;DIV class="lia-message-heading lia-component-message-header"&gt;
&lt;DIV class="lia-quilt-row lia-quilt-row-standard"&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-20 lia-quilt-column-left"&gt;
&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-left"&gt;
&lt;DIV class="lia-message-subject"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="lia-message-body lia-component-body"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The macros I have used can be found here&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/onlinedoc/stat/ex_code/121/templft2.html" target="_blank" rel="nofollow noopener noreferrer"&gt;http://support.sas.com/documentation/onlinedoc/stat/ex_code/121/templft2.html&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;and here&amp;nbsp;&lt;A href="https://stats.idre.ucla.edu/wp-content/uploads/2016/02/bcconf.txt" target="_blank" rel="nofollow noopener noreferrer"&gt;https://stats.idre.ucla.edu/wp-content/uploads/2016/02/bcconf.txt&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;Here is the 'standard' rtf code I have used:&lt;/P&gt;
&lt;P&gt;ods listing close;&lt;/P&gt;
&lt;P&gt;ods rtf file="S:\Projekt\XXX\Output\XXX_4juni2019.rtf";&lt;/P&gt;
&lt;P&gt;ods escapechar='^';&lt;BR /&gt;title1 'Title';&lt;BR /&gt;proc report data=xxx_ut&lt;BR /&gt;style(report)={font_face=times font_size=1 bordercolor=black}&lt;BR /&gt;style(column)={just=left font_face=times background=white foreground=black font_size=1 bordercolor=black cellwidth=.6in}&lt;BR /&gt;style(header)={just=center font_face=times background=white cellheight=.6in foreground=black font_size=1 bordercolor=black cellwidth=.6in};&lt;BR /&gt;COLUMN sorta cat1 pfs;&lt;BR /&gt;DEFINE sorta / order order=internal noprint;&lt;BR /&gt;DEFINE cat1 / display style(column)={just=left cellwidth=20%}''&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;style(header)={just=left cellwidth=20%} ;&lt;BR /&gt;DEFINE pfs / display style(column)={just=left cellwidth=20%}''&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;style(header)={just=left cellwidth=20%} ;&lt;/P&gt;
&lt;P&gt;run;title;footnote;&lt;/P&gt;
&lt;P&gt;ODS rtf close;&lt;BR /&gt;ODS listing;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks for advice or ideas.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;And what does the LOG show for your Proc Report code?&lt;/P&gt;
&lt;P&gt;I suspect you will see one or more instances of data set(s) with 0 observations for the entire job. If the data set&amp;nbsp;xxx_ut has no observations there is nothing for proc report to output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may have to turn on the options MPRINT and SYMBOLGEN prior to executing your macros to get more details of what is going on.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 15:16:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-rtf-empty-settings-gone-wrong/m-p/563546#M157999</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-06-04T15:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: ODS rtf empty, settings gone wrong?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-rtf-empty-settings-gone-wrong/m-p/563550#M158000</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;wrote:&lt;/P&gt;&lt;P&gt;And what does the LOG show for your Proc Report code?&lt;/P&gt;&lt;P&gt;I suspect you will see one or more instances of data set(s) with 0 observations for the entire job. If the data set&amp;nbsp;xxx_ut has no observations there is nothing for proc report to output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may have to turn on the options MPRINT and SYMBOLGEN prior to executing your macros to get more details of what is going on.&lt;/P&gt;&lt;P&gt;**************&lt;/P&gt;&lt;P&gt;Many thank for feedback!&lt;/P&gt;&lt;P&gt;The log says:&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;NOTE: Writing RTF Body file: C:\Projekt\XX\Output\XX_4juni2019.rtf&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;NOTE: There were 8 observations read from the data set WORK.XXX_UT.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: PROCEDURE REPORT used (Total process time):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;real time 0.12 seconds&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;cpu time 0.14 seconds&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;so there is data (going crazy) !!&lt;/P&gt;&lt;P&gt;I'll try MPRINT...&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 15:28:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-rtf-empty-settings-gone-wrong/m-p/563550#M158000</guid>
      <dc:creator>kiranp</dc:creator>
      <dc:date>2019-06-04T15:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: ODS rtf empty, settings gone wrong?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-rtf-empty-settings-gone-wrong/m-p/563559#M158002</link>
      <description>&lt;P&gt;Your first link doesn't link to any specific macro, so not terribly helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you look to see if the RTF file was actually in the folder? And open it? I notice the LOG file name is not the same as in the code you posted previously :&lt;/P&gt;
&lt;PRE&gt;ods rtf file="S:\Projekt\&lt;FONT color="#ff00ff"&gt;&lt;STRONG&gt;XXX&lt;/STRONG&gt;&lt;/FONT&gt;\Output\&lt;FONT color="#ff00ff"&gt;&lt;STRONG&gt;XXX&lt;/STRONG&gt;&lt;/FONT&gt;_4juni2019.rtf";&lt;/PRE&gt;
&lt;P&gt;vs&lt;/P&gt;
&lt;PRE&gt;NOTE: Writing RTF Body file: C:\Projekt\&lt;FONT color="#ff00ff"&gt;&lt;STRONG&gt;XX&lt;/STRONG&gt;&lt;/FONT&gt;\Output\&lt;FONT color="#ff00ff"&gt;&lt;STRONG&gt;XX&lt;/STRONG&gt;&lt;/FONT&gt;_4juni2019.rtf&lt;/PRE&gt;
&lt;P&gt;Any chance that you looked in the wrong folder? Or are you manually editing things to obscure "sensitive" material?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If either of the macros used ODS _ALL_ CLOSE; or ODS HTML Close; then the results window would not have anything but the RTF might.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 15:55:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-rtf-empty-settings-gone-wrong/m-p/563559#M158002</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-06-04T15:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: ODS rtf empty, settings gone wrong?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-rtf-empty-settings-gone-wrong/m-p/563561#M158003</link>
      <description>&lt;P&gt;Hi again many thanks for comittment to this problem&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The RTFfile is created - every time - it is just all blank&amp;nbsp;&lt;/P&gt;&lt;P&gt;attaching another link to the macro I have used - I think the problem might be in here somewhere&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/statug/67523/HTML/default/viewer.htm#statug_kaplan_sect014.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/statug/67523/HTML/default/viewer.htm#statug_kaplan_sect014.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll explore the MPRINT log and found some small adjustments to the code, but no break-through yet.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 16:05:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-rtf-empty-settings-gone-wrong/m-p/563561#M158003</guid>
      <dc:creator>kiranp</dc:creator>
      <dc:date>2019-06-04T16:05:51Z</dc:date>
    </item>
  </channel>
</rss>

