<?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 html5 to project folder in sas viya in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ods-html5-to-project-folder-in-sas-viya/m-p/858333#M339130</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/127222"&gt;@acordes&lt;/a&gt;&amp;nbsp;, sorry for the late response. I can see the SGPLOT is writing to png. Does it need to be a standalone png file? Have you tried having the SGPLOT produce an embedded SVG? Just to test producing the HTML works with this approach. Looking at your error the issue is writing the png file rather than creating the HTML.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you try the below and see if it runs?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename HTMLTST FILESRVC folderpath='/Users/myuser/My Folder/'  filename='ods_test3.html';

ods graphics on / imagemap  noborder  outputfmt=svg; /* enable data tips */


ods html5 path="/Users/myuser/My Folder" (url=none)
body=HTMLTST options(svg_mode='inline');

proc sgplot data=sashelp.class;
histogram height;
run;
ods html5 close;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 10 Feb 2023 20:02:22 GMT</pubDate>
    <dc:creator>HarrySnart</dc:creator>
    <dc:date>2023-02-10T20:02:22Z</dc:date>
    <item>
      <title>ods html5 to project folder in sas viya</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ods-html5-to-project-folder-in-sas-viya/m-p/855696#M338150</link>
      <description>&lt;P&gt;I can successfully "send" ods output to my caslibs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I'm struggling to send it to a project folder in sas viya 3.5.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What works for caslibs:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ODS GRAPHICS ON / height=800 width=1400 reset=all border=off antialiasmax=2500 tipmax=2500 
imagemap=on imagename="hist_kernel_&amp;amp;tab."; 
ods html5 path="/caslibs/reportspr/" (url=none) 
body="hist_&amp;amp;tab..html";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;My adoptation to the folders in sas viya fails:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let outpath =/Projects/SAS Viya training VWFS/;
ods _all_ close;

ODS GRAPHICS ON / height=800 width=1400 reset=all border=off antialiasmax=2500 tipmax=2500 
imagemap=on ; 
ods html5 path="&amp;amp;outpath." options(bitmap_mode="inline")
body="hist_&amp;amp;tab..html";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It gives the following the following error:&lt;/P&gt;
&lt;PRE&gt;ERROR: Physical file does not exist, /Projects/SAS Viya training VWFS/hist_SP_FACT_PROVISIONES.html.
ERROR: No body file. HTML5 output will not be created.&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 09:37:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ods-html5-to-project-folder-in-sas-viya/m-p/855696#M338150</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2023-01-26T09:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: ods html5 to project folder in sas viya</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ods-html5-to-project-folder-in-sas-viya/m-p/855928#M338223</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/127222"&gt;@acordes&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I find when saving to SAS Content its easiest to user the FILENAME statement. The below works in my environment on SAS Viya 3.5&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename HTMLTST FILESRVC folderpath='/Users/myuser/My Folder/'  filename='ods_test2.html';

ods html5 path="/Users/myuser/My Folder" (url=none)
body=HTMLTST;

proc sgplot data=sashelp.class;
histogram height;
run;
ods html5 close;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hope this helps&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 11:59:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ods-html5-to-project-folder-in-sas-viya/m-p/855928#M338223</guid>
      <dc:creator>HarrySnart</dc:creator>
      <dc:date>2023-01-27T11:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: ods html5 to project folder in sas viya</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ods-html5-to-project-folder-in-sas-viya/m-p/856170#M338311</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/335473"&gt;@HarrySnart&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It throws out the error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;1    %studio_hide_wrapper;
82   %studio_show_only_notes_wrapper;
NOTE: ODS statements in the SAS Studio environment may disable some output features.
85   
86   
87   filename HTMLTST FILESRVC folderpath='/Projects/Portugal/'  filename='ods_test2.html';
88   
89   ods html5 path="/Projects/Portugal" (url=none)
90   body=HTMLTST;
NOTE: Writing HTML5 Body file: HTMLTST
91   
92   proc sgplot data=sashelp.class;
93   histogram height;
94   run;
NOTE: STATGRAPH 'SGPlot' has been saved to: WORK.___Graph___
NOTE: PROCEDURE SGPLOT used (Total process time):
      real time           0.25 seconds
      cpu time            0.15 seconds
      
NOTE: Listing image output written to 
      /opt/sas/viya/config/var/tmp/compsrv/default/72bdcc64-062e-415c-a3b1-36de3f5a0e52/SAS_work9F8500006F01_bsul2237/SGPlot5.png.
WARNING: GPATH or PATH is not a writable directory. It will be ignored.
NOTE: There were 19 observations read from the data set SASHELP.CLASS.
95   
96   proc sgplot data=sashelp.class;
97   histogram age;
98   run;
NOTE: STATGRAPH 'SGPlot' has been saved to: WORK.___Graph___
NOTE: PROCEDURE SGPLOT used (Total process time):
      real time           0.14 seconds
      cpu time            0.09 seconds
      
NOTE: Listing image output written to 
      /opt/sas/viya/config/var/tmp/compsrv/default/72bdcc64-062e-415c-a3b1-36de3f5a0e52/SAS_work9F8500006F01_bsul2237/SGPlot7.png.
WARNING: GPATH or PATH is not a writable directory. It will be ignored.
NOTE: There were 19 observations read from the data set SASHELP.CLASS.
99   
100  ods html5 close;
101  
102  %studio_hide_wrapper;
113  
114  &lt;/PRE&gt;</description>
      <pubDate>Sun, 29 Jan 2023 23:15:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ods-html5-to-project-folder-in-sas-viya/m-p/856170#M338311</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2023-01-29T23:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: ods html5 to project folder in sas viya</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ods-html5-to-project-folder-in-sas-viya/m-p/856172#M338313</link>
      <description>&lt;P&gt;SAS Viya 3.5 Project folders do not exist in the filesystem/disk they are stored in the database Viya Server. Therefore one cannot write to them as you are trying to do.&lt;BR /&gt;Have a look at this thread&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Viya/create-project-folder-in-sas-viya-to-store-sas-code/td-p/737873" target="_blank"&gt;https://communities.sas.com/t5/SAS-Viya/create-project-folder-in-sas-viya-to-store-sas-code/td-p/737873&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Sun, 29 Jan 2023 23:30:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ods-html5-to-project-folder-in-sas-viya/m-p/856172#M338313</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2023-01-29T23:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: ods html5 to project folder in sas viya</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ods-html5-to-project-folder-in-sas-viya/m-p/858333#M339130</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/127222"&gt;@acordes&lt;/a&gt;&amp;nbsp;, sorry for the late response. I can see the SGPLOT is writing to png. Does it need to be a standalone png file? Have you tried having the SGPLOT produce an embedded SVG? Just to test producing the HTML works with this approach. Looking at your error the issue is writing the png file rather than creating the HTML.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you try the below and see if it runs?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename HTMLTST FILESRVC folderpath='/Users/myuser/My Folder/'  filename='ods_test3.html';

ods graphics on / imagemap  noborder  outputfmt=svg; /* enable data tips */


ods html5 path="/Users/myuser/My Folder" (url=none)
body=HTMLTST options(svg_mode='inline');

proc sgplot data=sashelp.class;
histogram height;
run;
ods html5 close;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Feb 2023 20:02:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ods-html5-to-project-folder-in-sas-viya/m-p/858333#M339130</guid>
      <dc:creator>HarrySnart</dc:creator>
      <dc:date>2023-02-10T20:02:22Z</dc:date>
    </item>
  </channel>
</rss>

