<?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 PDF document information in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-document-information/m-p/67103#M7786</link>
    <description>Lex, I believe that's correct....it's only 1 document, so you couldn't change author or keywords in the middle. OK, if that worked, how about this:&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods pdf file='yadayada.pdf';&lt;BR /&gt;
ods pdf columns=2 author='lex1' keywords='great report1 ';&lt;BR /&gt;
** proc report 1;&lt;BR /&gt;
&lt;BR /&gt;
ods pdf columns=1 author='lex2' keywords='great report 2';&lt;BR /&gt;
** proc report 2;&lt;BR /&gt;
&lt;BR /&gt;
ods pdf columns=2 author='lex3' keywords='great report 3';&lt;BR /&gt;
** proc report 3;&lt;BR /&gt;
ods pdf close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                &lt;BR /&gt;
I'm betting that IF it allows author &amp;amp; keywords, then ODS PDF will use the 3rd specification (which means you'd only have to do issue the author/keywords before the last report).&lt;BR /&gt;
                 &lt;BR /&gt;
cynthia</description>
    <pubDate>Tue, 23 Dec 2008 21:17:56 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2008-12-23T21:17:56Z</dc:date>
    <item>
      <title>ODS PDF document information</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-document-information/m-p/67100#M7783</link>
      <description>When I want to create a PDF file with document information, I can use ODS PDF options like AUTHOR=, KEYWORDS=.&lt;BR /&gt;
However, it looks like the ODS PDF COLUMNS= statement resets these options.&lt;BR /&gt;
See example below. The first PDF file has the document information, but the second one does not. You can ceck this information in Acrobat with File, Properties, Description.&lt;BR /&gt;
&lt;BR /&gt;
Any idea why I loose the information after specifying the COLUMNS= statement and how to solve this?&lt;BR /&gt;
&lt;BR /&gt;
DATA class;&lt;BR /&gt;
 SET sashelp.class &lt;BR /&gt;
     sashelp.class &lt;BR /&gt;
     sashelp.class &lt;BR /&gt;
     sashelp.class ;&lt;BR /&gt;
RUN;     &lt;BR /&gt;
&lt;BR /&gt;
ODS PDF FILE="test1.pdf"&lt;BR /&gt;
              AUTHOR="Donald Duck"&lt;BR /&gt;
              KEYWORDS="Disney";&lt;BR /&gt;
PROC PRINT DATA=class;&lt;BR /&gt;
RUN;&lt;BR /&gt;
ODS PDF CLOSE;&lt;BR /&gt;
&lt;BR /&gt;
ODS PDF FILE="test2.pdf"&lt;BR /&gt;
              AUTHOR="Donald Duck"&lt;BR /&gt;
              KEYWORDS="Disney";&lt;BR /&gt;
ODS PDF COLUMNS=2;&lt;BR /&gt;
PROC PRINT DATA=class;&lt;BR /&gt;
RUN;&lt;BR /&gt;
ODS PDF CLOSE;&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Lex Jansen</description>
      <pubDate>Tue, 23 Dec 2008 19:42:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-document-information/m-p/67100#M7783</guid>
      <dc:creator>Lex_SAS</dc:creator>
      <dc:date>2008-12-23T19:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF document information</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-document-information/m-p/67101#M7784</link>
      <description>Lex,&lt;BR /&gt;
what happens if you do this:&lt;BR /&gt;
[pre]&lt;BR /&gt;
ODS PDF FILE="test2.pdf"&lt;BR /&gt;
      AUTHOR="Donald Duck"&lt;BR /&gt;
      KEYWORDS="Disney"&lt;BR /&gt;
       COLUMNS=2;&lt;BR /&gt;
PROC PRINT DATA=class;&lt;BR /&gt;
RUN;&lt;BR /&gt;
      &lt;BR /&gt;
ODS PDF CLOSE;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
(keep columns=2 on the original invocation???)&lt;BR /&gt;
&lt;BR /&gt;
just curious. I'm on a computer without SAS right now, or I'd check. I'm guessing that somehow COLUMNS=2 on a separate invocation statement does something to the document metadata. I'm just wondering whether the same thing will happen on a more standard invocation (where the metadata about author &amp;amp; columns are in the same place.&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 23 Dec 2008 20:12:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-document-information/m-p/67101#M7784</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-12-23T20:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF document information</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-document-information/m-p/67102#M7785</link>
      <description>Cynthia,&lt;BR /&gt;
&lt;BR /&gt;
Thanks, that worked.&lt;BR /&gt;
My only problem is now that I have several PROC REPORTs going into the same PDF file and I have to change the COLUMNS between different PROC REPORTS.&lt;BR /&gt;
&lt;BR /&gt;
Btw: the AUTHORS and KEYWORDS options can only be used when initializing a destination. Right? &lt;BR /&gt;
&lt;BR /&gt;
Lex</description>
      <pubDate>Tue, 23 Dec 2008 20:45:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-document-information/m-p/67102#M7785</guid>
      <dc:creator>Lex_SAS</dc:creator>
      <dc:date>2008-12-23T20:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF document information</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-document-information/m-p/67103#M7786</link>
      <description>Lex, I believe that's correct....it's only 1 document, so you couldn't change author or keywords in the middle. OK, if that worked, how about this:&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods pdf file='yadayada.pdf';&lt;BR /&gt;
ods pdf columns=2 author='lex1' keywords='great report1 ';&lt;BR /&gt;
** proc report 1;&lt;BR /&gt;
&lt;BR /&gt;
ods pdf columns=1 author='lex2' keywords='great report 2';&lt;BR /&gt;
** proc report 2;&lt;BR /&gt;
&lt;BR /&gt;
ods pdf columns=2 author='lex3' keywords='great report 3';&lt;BR /&gt;
** proc report 3;&lt;BR /&gt;
ods pdf close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                &lt;BR /&gt;
I'm betting that IF it allows author &amp;amp; keywords, then ODS PDF will use the 3rd specification (which means you'd only have to do issue the author/keywords before the last report).&lt;BR /&gt;
                 &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 23 Dec 2008 21:17:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-document-information/m-p/67103#M7786</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-12-23T21:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF document information</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-document-information/m-p/67104#M7787</link>
      <description>No, did not work.&lt;BR /&gt;
I get errors like:&lt;BR /&gt;
WARNING: The KEYWORDS option was specified but the destination was already open.  This option can only be specified when initializing the &lt;BR /&gt;
         destination; the new value will be ignored.&lt;BR /&gt;
WARNING: The AUTHOR option was specified but the destination was already open.  This option can only be specified when initializing the &lt;BR /&gt;
         destination; the new value will be ignored.&lt;BR /&gt;
&lt;BR /&gt;
BUT .... I still have the metadata in my document ('lex1' and 'great report 1')&lt;BR /&gt;
&lt;BR /&gt;
If I use the following code, I will lose my metadata:&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
 ods pdf file='yadayada.pdf';&lt;BR /&gt;
 ods pdf columns=2 author='lex1' keywords='great report1 ';&lt;BR /&gt;
 ** proc report 1;&lt;BR /&gt;
 ods pdf columns=1;&lt;BR /&gt;
 ** proc report 2;&lt;BR /&gt;
 ods pdf columns=2;&lt;BR /&gt;
 ** proc report 3;&lt;BR /&gt;
 ods pdf close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
Seems like bug to me ....</description>
      <pubDate>Tue, 23 Dec 2008 21:36:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-document-information/m-p/67104#M7787</guid>
      <dc:creator>Lex_SAS</dc:creator>
      <dc:date>2008-12-23T21:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF document information</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-document-information/m-p/67105#M7788</link>
      <description>Interesting. It -does- make sense that the metadata for the document would be created when the document is initialized. Not sure why it gets reset if you have COLUMNS=, that seems a bit wonky.  I think it's worth opening a track with Tech Support so the question goes to the ODS folks.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 23 Dec 2008 21:40:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-document-information/m-p/67105#M7788</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-12-23T21:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF document information</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-document-information/m-p/67106#M7789</link>
      <description>It gets even more interesting.&lt;BR /&gt;
The following code gives no errors and will use the last specification.&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods pdf file='yadayada.pdf'; &lt;BR /&gt;
ods pdf columns=2 author='lex1' keywords='great report1 '; &lt;BR /&gt;
** proc report 1; &lt;BR /&gt;
ods pdf columns=1; &lt;BR /&gt;
** proc report 2; &lt;BR /&gt;
ods pdf columns=2 author='lex3' keywords='great report3 ';  &lt;BR /&gt;
** proc report 3; &lt;BR /&gt;
ods pdf close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
And I can even do this (without errors or warnings):&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods pdf file='yadayada.pdf'; &lt;BR /&gt;
ods pdf columns=2'; &lt;BR /&gt;
** proc report 1; &lt;BR /&gt;
ods pdf columns=1; &lt;BR /&gt;
** proc report 2; &lt;BR /&gt;
ods pdf columns=2 author='lex3' keywords='great report3 ';  &lt;BR /&gt;
** proc report 3; &lt;BR /&gt;
ods pdf close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
or this:&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods pdf file='yadayada.pdf'; &lt;BR /&gt;
ods pdf columns=2'; &lt;BR /&gt;
** proc report 1; &lt;BR /&gt;
ods pdf columns=1; &lt;BR /&gt;
** proc report 2; &lt;BR /&gt;
ods pdf columns=2;  &lt;BR /&gt;
** proc report 3; &lt;BR /&gt;
ods pdf  author='lex3' keywords='great report3';&lt;BR /&gt;
ods pdf close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
In both last cases I get the metadata.&lt;BR /&gt;
So, I think I have it solved.&lt;BR /&gt;
I will issues the metadata before I close the PDF destination.&lt;BR /&gt;
&lt;BR /&gt;
Have a great holiday!</description>
      <pubDate>Tue, 23 Dec 2008 22:29:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-document-information/m-p/67106#M7789</guid>
      <dc:creator>Lex_SAS</dc:creator>
      <dc:date>2008-12-23T22:29:49Z</dc:date>
    </item>
  </channel>
</rss>

