<?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: Exporting a data _null_ to a pdf in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-a-data-null-to-a-pdf/m-p/261735#M15536</link>
    <description>&lt;P&gt;Ok, thanks.&amp;nbsp; Back to the drawing board!!&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Apr 2016 14:26:47 GMT</pubDate>
    <dc:creator>MeganE</dc:creator>
    <dc:date>2016-04-06T14:26:47Z</dc:date>
    <item>
      <title>Exporting a data _null_ to a pdf</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-a-data-null-to-a-pdf/m-p/261700#M15531</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to output what is basically just a print out of a formats catalog and two things keep happening:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; I cannot for the life of me stop it from printing thousands and thousands of lines in the log.&amp;nbsp; How do i keep it from writing to the log???&amp;nbsp; I thought it was ods listing close, (even tried ods _all_ close) but that doesn't appear to do anything at all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; I keep getting this in the log.&amp;nbsp; I have a run statement before ods pdf close. ?:&lt;/P&gt;&lt;P&gt;1031&amp;nbsp; /****PDF TEST*****/&lt;BR /&gt;1032&amp;nbsp; ods _all_ close;&lt;BR /&gt;1033&amp;nbsp; ods pdf file="&amp;amp;path.AppendixC.pdf";&lt;BR /&gt;NOTE: Writing ODS PDF output to DISK destination&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "[path removed for confidentiality]\AppendixC.pdf", printer "PDF".&lt;BR /&gt;1034&amp;nbsp; data _null_;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;[thousands of lines of crap - no error messages or warnings at all though]&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;1009&amp;nbsp; ods pdf close;&lt;BR /&gt;NOTE: ODS PDF printed no output.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (This sometimes results from failing to place a RUN statement before the ODS PDF CLOSE&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; statement.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;My code&lt;/U&gt;:&lt;/P&gt;&lt;P&gt;ods _all_ close;&lt;BR /&gt;ods pdf file="&amp;amp;path.AppendixC.pdf";&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data _null_;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;set formats2;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;by sort;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;/*Longest name is 11, Type is 9, Value is 16, Label is 50.*/&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;put @1 Name &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/70859"&gt;@12&lt;/a&gt; Type @23 Value @37 Label1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;if label2 ne "" then do;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;put&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;@37 Label2;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;end;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;if label3 ne "" then do;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;put&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;@37 Label3;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;end;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;if label4 ne "" then do;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;put&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;@37 Label4;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;end;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;if label5 ne "" then do;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;put&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;@37 Label5;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ods pdf close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Megan&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 13:42:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-a-data-null-to-a-pdf/m-p/261700#M15531</guid>
      <dc:creator>MeganE</dc:creator>
      <dc:date>2016-04-06T13:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting a data _null_ to a pdf</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-a-data-null-to-a-pdf/m-p/261714#M15533</link>
      <description>&lt;P&gt;Without a &lt;FONT face="courier new,courier"&gt;file&lt;/FONT&gt; statement in the &lt;FONT face="courier new,courier"&gt;data&lt;/FONT&gt; step, &lt;FONT face="courier new,courier"&gt;put&lt;/FONT&gt; will always write to the log, not the output destination.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When creating HTML, I often open the HTML destination with &lt;FONT face="courier new,courier"&gt;no_bottom_matter&lt;/FONT&gt;, close it, write some text to the file with a &lt;FONT face="courier new,courier"&gt;data _null_;&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;file .... mod;&lt;/FONT&gt;, and then reopen the same file in ODS HTML with &lt;FONT face="courier new,courier"&gt;no_top_matter&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;mod&lt;/FONT&gt; after the fileref.&lt;/P&gt;
&lt;P&gt;Don't know if a similar trick is possible (and makes sense) with &lt;FONT face="courier new,courier"&gt;ods pdf&lt;/FONT&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 14:02:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-a-data-null-to-a-pdf/m-p/261714#M15533</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-04-06T14:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting a data _null_ to a pdf</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-a-data-null-to-a-pdf/m-p/261720#M15534</link>
      <description>&lt;P&gt;Thanks.&amp;nbsp; I added the file line to it and that kept it from writing to the log window, but i still got the same&lt;/P&gt;&lt;P&gt;1097&amp;nbsp; ods pdf close;&lt;BR /&gt;NOTE: ODS PDF printed no output.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (This sometimes results from failing to place a RUN statement before the ODS PDF CLOSE&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; statement.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It did create a pdf, but it wont' open:&lt;/P&gt;&lt;P&gt;Adobe Acrobat DC could not open "AppendixC.pdf" because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To create an Adobe PDF document, go to the source application.&amp;nbsp; Then print the document to Adobe PDF.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 14:08:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-a-data-null-to-a-pdf/m-p/261720#M15534</guid>
      <dc:creator>MeganE</dc:creator>
      <dc:date>2016-04-06T14:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting a data _null_ to a pdf</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-a-data-null-to-a-pdf/m-p/261726#M15535</link>
      <description>&lt;P&gt;Took a look at the ODS PDF documentation. You cannot manually write additional data to a PDF destination like you can with the HTML destination.&lt;/P&gt;
&lt;P&gt;So, data _null_ is out, and you must create your output with the proper procedures (proc print, proc report, the graphic procedures, or proc sql with a select) when writing to the PDF destination.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 14:19:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-a-data-null-to-a-pdf/m-p/261726#M15535</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-04-06T14:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting a data _null_ to a pdf</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-a-data-null-to-a-pdf/m-p/261735#M15536</link>
      <description>&lt;P&gt;Ok, thanks.&amp;nbsp; Back to the drawing board!!&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 14:26:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-a-data-null-to-a-pdf/m-p/261735#M15536</guid>
      <dc:creator>MeganE</dc:creator>
      <dc:date>2016-04-06T14:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting a data _null_ to a pdf</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-a-data-null-to-a-pdf/m-p/261771#M15539</link>
      <description>&lt;P&gt;From I can see you are attempting it may be that reshaping your data and proc report would work. A hint: if you want to see different &lt;STRONG&gt;variables&lt;/STRONG&gt; in the same column in output that you want to transpose data creating a different variable whose &lt;STRONG&gt;values&lt;/STRONG&gt; become the column enteries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your example I think&amp;nbsp;would work with Proc Report with Name Type and Value as Group variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 14:56:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-a-data-null-to-a-pdf/m-p/261771#M15539</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-04-06T14:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting a data _null_ to a pdf</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-a-data-null-to-a-pdf/m-p/261777#M15540</link>
      <description>&lt;P&gt;Yes, thanks.&amp;nbsp; I ended up getting this to work.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods listing close;&lt;BR /&gt;ods pdf file="&amp;amp;path.AppendixC.pdf";&lt;BR /&gt;proc report data=Formats3 nowd headline headskip wrap;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;column first_name first_type value label;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;define first_name / width=12 "Format Name";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;define first_type &amp;nbsp;&amp;nbsp; &amp;nbsp;/ width=9 "Type";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;define value&amp;nbsp;&amp;nbsp; &amp;nbsp;/ width=16 "Value";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;define label&amp;nbsp;&amp;nbsp; &amp;nbsp;/ width=254 "Label";&lt;BR /&gt;run;&lt;BR /&gt;ods pdf close;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 14:59:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-a-data-null-to-a-pdf/m-p/261777#M15540</guid>
      <dc:creator>MeganE</dc:creator>
      <dc:date>2016-04-06T14:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting a data _null_ to a pdf</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-a-data-null-to-a-pdf/m-p/261785#M15541</link>
      <description>&lt;P&gt;Great that you found a solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Remark:&amp;nbsp;&amp;nbsp;You &lt;EM&gt;can&lt;/EM&gt; write to the PDF destination using a data _null_ step: Just add&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;file print;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to the data step in order to redirect the output from the log to the output destination (which is the PDF file after the ODS PDF and ODS listing close&amp;nbsp;statements).&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 15:20:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-a-data-null-to-a-pdf/m-p/261785#M15541</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-04-06T15:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting a data _null_ to a pdf</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-a-data-null-to-a-pdf/m-p/261791#M15542</link>
      <description>&lt;P&gt;That did work too, thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 15:37:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Exporting-a-data-null-to-a-pdf/m-p/261791#M15542</guid>
      <dc:creator>MeganE</dc:creator>
      <dc:date>2016-04-06T15:37:22Z</dc:date>
    </item>
  </channel>
</rss>

