<?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: SAS Report PDF to Sharepoint Folder in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-Report-PDF-to-Sharepoint-Folder/m-p/418635#M19955</link>
    <description>&lt;P&gt;Show the code and the error from the log. Paste into a code box opened with the {I} icon to maintain formatting of any messages.&lt;/P&gt;
&lt;P&gt;Many of the error messages indicate where the error occurs but the main windows on this forum reformat text losing some of the information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Dec 2017 23:20:54 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-12-05T23:20:54Z</dc:date>
    <item>
      <title>SAS Report PDF to Sharepoint Folder</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-Report-PDF-to-Sharepoint-Folder/m-p/418609#M19953</link>
      <description>&lt;P&gt;I am trying to push some&amp;nbsp;proc report results to a sharepoint folder as a PDF. I get this error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: Physical file does not exist&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was wondering if I need to work with our sys admin to grant SAS the necessary permissions to SharePoint in order to write files to folders, or if I am using the wrong command code. I am currently trying to use the ODS PDF command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%let&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; date=&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%sysfunc&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(putn(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%sysfunc&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(today()),mmddyyd10.));&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;options&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;nobyline&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;orientation&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=landscape;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ods&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;listing&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;close&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ods&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;pdf&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;file&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"&lt;EM&gt;sharepoint path&lt;/EM&gt;&amp;nbsp;&amp;amp;date .pdf"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%let&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; month = &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%sysfunc&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(today(),monname12.);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%let&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; year = &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%sysfunc&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(today(),year4.);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;TITLE1&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;j&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=l &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;h&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;5&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;"Agent Productivity Dashboard: &amp;amp;month &amp;amp;year"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;TITLE2&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;j&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=left &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;h&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;"Agent: #byval2 (#byval1)"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;TITLE3&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;j&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=left &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;h&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;"Supervisor: #byval3"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;FOOTNOTE&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;report...&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;...run;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;ods pdf close;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Nathan&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 21:31:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-Report-PDF-to-Sharepoint-Folder/m-p/418609#M19953</guid>
      <dc:creator>NathanOch</dc:creator>
      <dc:date>2017-12-05T21:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Report PDF to Sharepoint Folder</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-Report-PDF-to-Sharepoint-Folder/m-p/418635#M19955</link>
      <description>&lt;P&gt;Show the code and the error from the log. Paste into a code box opened with the {I} icon to maintain formatting of any messages.&lt;/P&gt;
&lt;P&gt;Many of the error messages indicate where the error occurs but the main windows on this forum reformat text losing some of the information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 23:20:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-Report-PDF-to-Sharepoint-Folder/m-p/418635#M19955</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-12-05T23:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Report PDF to Sharepoint Folder</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-Report-PDF-to-Sharepoint-Folder/m-p/418671#M19957</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Here are two examples that I use as Sharepoint examples. Note that I used a UNC location for my Sharepoint site and I did have to go to my Sharepoint admin to get the correct UNC name and get the "cztest" folder added to that location with write access permissions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods _all_ close;
title; footnote;
  
options topmargin=.25in bottommargin=.25in leftmargin=.25in rightmargin=.25in;
  
** make pdf file;
filename pdf_out '\\xxx.yyy.sas.com\zzz\Shared Documents\Examples\cztest\report1.pdf';
  
ods pdf(id=p) file=pdf_out ;
proc report data=sashelp.class;
  title 'This PDF file is on SharePoint';
  column age height,(min mean max);
  define age / group;
  define height / analysis;
run;
  
ods pdf(id=p) close;
filename pdf_out clear;
  
** make html file;
filename htm_out '\\xxx.yyy.sas.com\zzz\Shared Documents\Examples\cztest\report2.html';
  
ods html(id=h) body=htm_out encoding=UTF8 dev=gif ;
proc report data=sashelp.class;
  title 'This HTML file is on SharePoint';
  column age height,(min mean max);
  define age / group;
  define height / analysis;
run;
  
ods html(id=h) close;
filename htm_out clear;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Dec 2017 03:43:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-Report-PDF-to-Sharepoint-Folder/m-p/418671#M19957</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-12-06T03:43:56Z</dc:date>
    </item>
  </channel>
</rss>

