<?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: PDF output issue in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PDF-output-issue/m-p/345006#M18209</link>
    <description>&lt;P&gt;It's not the proc report portion that's causing the issue, I'm thinking. What leads up to "&lt;SPAN&gt;work.fndg_dlate_today_int?" I'm assuming at some point there's a failed data step and this data set simply keeps the data from the last successful run. And is this wrapped within a macro? I would assume it is. What do you see in the log between a correct run and one where it just repeats the previous results?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Mar 2017 14:45:13 GMT</pubDate>
    <dc:creator>collinelliot</dc:creator>
    <dc:date>2017-03-28T14:45:13Z</dc:date>
    <item>
      <title>PDF output issue</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PDF-output-issue/m-p/344821#M18203</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I hope somebody encountered with it or maybe knows how to fix it.&lt;/P&gt;&lt;P&gt;Here is my issue. I am generating a lot of reports every month with XLS and PDF outputs. I have no issues when I get "hits" and results are recorded in PDF outputs. However, when the results "return 0" (meaning I do not have any records) - I still get previous result from the last month (for instanse) in the "Results window and it gets recorded into PDF output.&lt;/P&gt;&lt;P&gt;So, my question is - Does anyone knows how to refresh the "results window" every time the code runs?&lt;/P&gt;&lt;P&gt;I have tried already many options in my code and researched the issues, but can't find solution to it:&lt;/P&gt;&lt;P&gt;1. ods output clear;&lt;BR /&gt;2. dm 'odsresults; clear';;&lt;BR /&gt;- but nothing seems to work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone help me with it if you know what could be the issue? I have attached the document with picture for better understanding of the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 22:34:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PDF-output-issue/m-p/344821#M18203</guid>
      <dc:creator>misha</dc:creator>
      <dc:date>2017-03-27T22:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: PDF output issue</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PDF-output-issue/m-p/344827#M18204</link>
      <description>&lt;P&gt;My two cents... The issue is probably more that you need to delete the previous intermediate data sets. SAS might not find results, but if there's some intermediate set with data from the previous month, it will go forward with that. I'd recommend a proc datasets to delete at the very least the data sets that directly feed the PDF. Also, if you're generating a ton of documents, I'd probably wrap and ODS noresults; ODS results; around my reporting code and just access the PDFs from whereever you send them with your "file = ...."&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 23:21:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PDF-output-issue/m-p/344827#M18204</guid>
      <dc:creator>collinelliot</dc:creator>
      <dc:date>2017-03-27T23:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: PDF output issue</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PDF-output-issue/m-p/344991#M18206</link>
      <description>&lt;P&gt;Hi collinelliot,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;Removing the previous data set helped for couple of month until I got some results in one month, but when I hit 0 results again it defaulted to old one again...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;I also tried ODS noresults in the beginning of the code and ODS results at the end - Also doesn't seem to help...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;So, I am very perplexed on how to make it consistent with results, because when I let my manager to run the code he doesn't know how to distinguish between old and new results in PDFs... I added the time stamp for now, but I am sure the must be solution for this...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;Does anyone know if I should contact maybe SAS support team for this? I would assume it must be a glitch in the system...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;Thanks Everyone!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 14:25:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PDF-output-issue/m-p/344991#M18206</guid>
      <dc:creator>misha</dc:creator>
      <dc:date>2017-03-28T14:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: PDF output issue</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PDF-output-issue/m-p/344999#M18207</link>
      <description>&lt;P&gt;I'd have to see your code&amp;nbsp;to help further. What you might want/need to add is some conditional logic that only outputs the report if there is valid data. I'm assuming this is all within a macro, so it would be easy.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 14:33:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PDF-output-issue/m-p/344999#M18207</guid>
      <dc:creator>collinelliot</dc:creator>
      <dc:date>2017-03-28T14:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: PDF output issue</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PDF-output-issue/m-p/345005#M18208</link>
      <description>&lt;P&gt;Here is the code and there is nothing fancy that I know of in it...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ODS ESCAPECHAR='^'; /* for separation purposes */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc report nowd data=work.fndg_dlate_today_int HEADLINE CENTER style(hdr)=[height=.5in];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let todate = %sysfunc(today(),mmddyy10.);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;title bold "Findings Days Late - Due: &amp;amp;todate";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;col 'days late'n 'due date'n 'result id'n 'asmt title'n 'Business Unit'n Description 'org info'n 'qa evaluator'n;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;define 'days late'n / center style(column)=[color=red font_size=2 font_weight=bold width=.4in];&lt;BR /&gt;define 'due date'n / center style(column)=[width=.5in];&lt;BR /&gt;define 'result id'n / center style(column)=[width=.5in color=darkblue font_size=2 font_weight=bold];&lt;BR /&gt;define 'asmt title'n / style(column)=[width=1.2in];&lt;BR /&gt;define 'Business Unit'n / style(column)=[width=1.2in];&lt;BR /&gt;define 'org info'n / style(column)=[width=1.4in];&lt;BR /&gt;define Description / style(column)=[width=4in];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;options orientation=landscape topmargin=.25in bottommargin=.25in leftmargin=.25in rightmargin=.25in;&lt;BR /&gt;options nodate;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;footnote "Generated by Quality Assurance on %TRIM(%QSYSFUNC(DATE(), NLDATE20.)) at %TRIM(%SYSFUNC(TIME(), TIMEAMPM12.))";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 14:37:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PDF-output-issue/m-p/345005#M18208</guid>
      <dc:creator>misha</dc:creator>
      <dc:date>2017-03-28T14:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: PDF output issue</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PDF-output-issue/m-p/345006#M18209</link>
      <description>&lt;P&gt;It's not the proc report portion that's causing the issue, I'm thinking. What leads up to "&lt;SPAN&gt;work.fndg_dlate_today_int?" I'm assuming at some point there's a failed data step and this data set simply keeps the data from the last successful run. And is this wrapped within a macro? I would assume it is. What do you see in the log between a correct run and one where it just repeats the previous results?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 14:45:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PDF-output-issue/m-p/345006#M18209</guid>
      <dc:creator>collinelliot</dc:creator>
      <dc:date>2017-03-28T14:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: PDF output issue</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PDF-output-issue/m-p/345009#M18210</link>
      <description>&lt;P&gt;Actually, when you mention condition... I just added one for the previous step to "validate" the result and it seems to work even better...&lt;/P&gt;&lt;P&gt;This way it is not runing the next step at all and doesn't produce PDF...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will go with this solution for now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the idea I completelly forgot about doing it this way...&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 14:52:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PDF-output-issue/m-p/345009#M18210</guid>
      <dc:creator>misha</dc:creator>
      <dc:date>2017-03-28T14:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: PDF output issue</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PDF-output-issue/m-p/345011#M18211</link>
      <description>&lt;P&gt;Great. Good luck.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 14:53:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PDF-output-issue/m-p/345011#M18211</guid>
      <dc:creator>collinelliot</dc:creator>
      <dc:date>2017-03-28T14:53:45Z</dc:date>
    </item>
  </channel>
</rss>

