<?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 html path question in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ODS-html-path-question/m-p/844979#M334056</link>
    <description>&lt;P&gt;The folder SAS uses for the WORK library changes with each new SAS session and that includes SAS Studio. That is why using the PATHNAME example is the way to go. It will work regardless of whether you a using a SAS Studio session, running a SAS batch job and so on.&lt;/P&gt;</description>
    <pubDate>Thu, 17 Nov 2022 21:10:15 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2022-11-17T21:10:15Z</dc:date>
    <item>
      <title>ODS html path question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-html-path-question/m-p/844972#M334054</link>
      <description>&lt;P&gt;Hi, I am reading page 338 of the official specialist base exam prep guide. The book says to reset the ODS destination to HTML output at the end of your programs with this code.&lt;/P&gt;
&lt;PRE&gt;ods html path="%qsysfunc(pathname(work))";&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nietzsche_0-1668717841411.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77416iDE93D41323DE5423/image-size/large?v=v2&amp;amp;px=999" role="button" title="Nietzsche_0-1668717841411.png" alt="Nietzsche_0-1668717841411.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Is this code generic as it is or do I need to change the pathname or my system path?&lt;/P&gt;
&lt;PRE&gt;ods html path="%qsysfunc(/home/u62043935/(work))";&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN class="fontstyle0"&gt;or something as I am a studio user?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="fontstyle0"&gt;sorry if the question sounds stupid.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 20:49:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-html-path-question/m-p/844972#M334054</guid>
      <dc:creator>Nietzsche</dc:creator>
      <dc:date>2022-11-17T20:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: ODS html path question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-html-path-question/m-p/844978#M334055</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/431484"&gt;@Nietzsche&lt;/a&gt;, Printing the macro in SAS Studio, I get :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;%put %qsysfunc(pathname(work));&lt;/STRONG&gt;&lt;BR /&gt;&lt;EM&gt;/opt/sas/viya/config/var/tmp/compsrv/default/1784d302-ce0e-459a-8c14-2ba87739be2b/SAS_work745C00000215_sas-launcher-a45f1928-0ae2-45&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;9e-9ec1-27874a58c13a-1834&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which corresponds to the work directory allocated within my pod when the SAS Studio session was launched. &amp;nbsp;You do not need to change the parameter 'work'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that this remains the same for the entire session. &amp;nbsp;If you access SAS Studio from another Incognito window / Private window in the same workstation (i.e. you have to log in again), &amp;nbsp;you will notice that the work directory has changed (because it's a different session).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;regards,&lt;/P&gt;
&lt;P&gt;Sundaresh&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 21:06:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-html-path-question/m-p/844978#M334055</guid>
      <dc:creator>Sundaresh1</dc:creator>
      <dc:date>2022-11-17T21:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: ODS html path question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-html-path-question/m-p/844979#M334056</link>
      <description>&lt;P&gt;The folder SAS uses for the WORK library changes with each new SAS session and that includes SAS Studio. That is why using the PATHNAME example is the way to go. It will work regardless of whether you a using a SAS Studio session, running a SAS batch job and so on.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 21:10:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-html-path-question/m-p/844979#M334056</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-11-17T21:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: ODS html path question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-html-path-question/m-p/844989#M334061</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; The WORK library is a temporary library and is stored in a temporary location on the server. The WORK location is automatically closed and the folder deleted when you end your SAS session. On SAS OnDemand, WORK is not under your HOME folder on the server. So the code would be OK as shown in the book without changes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; You can see the location of the WORK library by submitting this code in your session:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put WORK path is: %qsysfunc(pathname(work));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And in the output, you'll see that the HOME folder and the userID for the test account are not visible in the path for the WORK library.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Here's the screen shot of what it looks like on my test account:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1668720442589.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77419iF7041028DC2EDC6F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1668720442589.png" alt="Cynthia_sas_0-1668720442589.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Depending on the operating system where you're running SAS and the defaults set by your system administrator, you may or may not have your default path directed to the WORK library. On my Windows install of SAS, my default location for ODS HTML is the WORK location, so I do use this technique; however, on other systems, my default location is a write access folder or a different temporary location, so I don't use this technique -- I direct the output to a different folder. The downside of this technique is that WORK is deleted at the end of each session. If I direct my output to my personal write access folder, then I am responsible for doing the clean-up..&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 21:45:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-html-path-question/m-p/844989#M334061</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2022-11-17T21:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: ODS html path question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-html-path-question/m-p/845292#M334170</link>
      <description>&lt;P&gt;Thank you Cynthia for the detailed screenshot.&lt;/P&gt;</description>
      <pubDate>Sat, 19 Nov 2022 23:41:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-html-path-question/m-p/845292#M334170</guid>
      <dc:creator>Nietzsche</dc:creator>
      <dc:date>2022-11-19T23:41:53Z</dc:date>
    </item>
  </channel>
</rss>

