<?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 Studio ODS output in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-ODS-output/m-p/548134#M7336</link>
    <description>&lt;P&gt;Thanks both,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like my answer is that there isn't a way to get the ODS to show up in SAS Studio unless it is using the pre-defined html5 etc. so i'll just avoid ods _all_ close for now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tim&lt;/P&gt;</description>
    <pubDate>Wed, 03 Apr 2019 08:19:03 GMT</pubDate>
    <dc:creator>TimCampbell</dc:creator>
    <dc:date>2019-04-03T08:19:03Z</dc:date>
    <item>
      <title>SAS Studio ODS output</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-ODS-output/m-p/546935#M7306</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have some code that I am trying to migrate from running in enterprise guide to running in SAS studio.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One of the programs contains code that closes all open ODS destinations and creates a temp filename to output a pdf.&lt;/P&gt;
&lt;P&gt;similar to the code below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods _all_ close; &lt;BR /&gt;filename pdfrprt temp; &lt;BR /&gt;ods pdf file=pdfrprt style=sasweb; &lt;BR /&gt;proc print data=sashelp.class; &lt;BR /&gt;run; &lt;BR /&gt;ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In EG this results in a pdf file being included in the output but in SAS studio it just disappears and I can't seem to find where to view the pdf.&lt;/P&gt;
&lt;P&gt;I don't really want to save this to a permanent location as these reports are usually just looked at once and discarded or maybe printed and the pdf output is useful for the formatting.&lt;/P&gt;
&lt;P&gt;Obviously the programs I am migrating are more complicated than this one and do some more specific work controlling the output but this was the simplest example I could make to show the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If anyone has a solution to control temporary ods output coming into sas studio it would be much appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tim&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 16:02:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-ODS-output/m-p/546935#M7306</guid>
      <dc:creator>TimCampbell</dc:creator>
      <dc:date>2019-03-28T16:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio ODS output</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-ODS-output/m-p/546954#M7307</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; My guess is that the "working" directory folder on the server is differently set than it is in Enterprise Guide. When I use your technique in my local copy of SAS, I have an issue because the created file is given just a number, stored in my working folder and there is no file extension on the file, as shown below (when I ran your code):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="working_directory.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28296iE3548B3A42CD028C/image-size/large?v=v2&amp;amp;px=999" role="button" title="working_directory.png" alt="working_directory.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can see that Adobe opened a file with the name #LN00010 but the file did not have a file extension, so I had to go thru the whole "open with" process on Windows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I don't know where your working directory is on your server, or if you have write access to that location. That is a question for Tech Support. You might have to try something like this:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;filename pdfrprt &lt;FONT color="#FF00FF"&gt;"%sysfunc(pathname(work))"&lt;/FONT&gt;; &lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;ods pdf file=pdfrprt style=sasweb; &lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;proc print data=sashelp.class; &lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;run; &lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;ods pdf close;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or this:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;filename pdfrprt "&lt;FONT color="#FF00FF"&gt;%sysfunc(pathname(work))&lt;/FONT&gt;&lt;FONT color="#008000"&gt;/pdftmp.pdf&lt;/FONT&gt;"; &lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;ods pdf file=pdfrprt style=sasweb; &lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;** ... more code ...;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;ods pdf close;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in SAS Studio. Personally, I've stopped using ods _all_ close; with SAS Studio. It gets a little cranky if you close all the open ODS destinations. As a best practice, I also always use a filename and file extension instead of taking a default name. With a filename and file extension, I can use operating system utilities to search for the file in order to download it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps. Otherwise, you might want to work with Tech Support on this question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 17:01:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-ODS-output/m-p/546954#M7307</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-03-28T17:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio ODS output</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-ODS-output/m-p/546960#M7308</link>
      <description>&lt;P&gt;Cynthia knows WAY more than I do about ODS so I'll defer to her and the other ODS experts on what to do.&amp;nbsp; But I did want to make sure you knew that we have &lt;A href="https://go.documentation.sas.com/?activeCdc=webeditorcdc&amp;amp;cdcId=sasstudiocdc&amp;amp;cdcVersion=3.8&amp;amp;docsetId=webeditorug&amp;amp;docsetTarget=p0115nyep27xzhn1r00duy7e5k7d.htm&amp;amp;locale=en" target="_self"&gt;a section in the SAS Studio User's Guide&lt;/A&gt; specifically on handling ODS destinations since, as Cynthia mentions, it's a bit tricky.&amp;nbsp; There may be something in there that might help.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 17:16:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-ODS-output/m-p/546960#M7308</guid>
      <dc:creator>AmyP_sas</dc:creator>
      <dc:date>2019-03-28T17:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio ODS output</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-ODS-output/m-p/548134#M7336</link>
      <description>&lt;P&gt;Thanks both,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like my answer is that there isn't a way to get the ODS to show up in SAS Studio unless it is using the pre-defined html5 etc. so i'll just avoid ods _all_ close for now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tim&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2019 08:19:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-ODS-output/m-p/548134#M7336</guid>
      <dc:creator>TimCampbell</dc:creator>
      <dc:date>2019-04-03T08:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio ODS output</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-ODS-output/m-p/548385#M7338</link>
      <description>&lt;P&gt;That is correct.&amp;nbsp; SAS Studio does not currently open ODS results generated by hand-written ODS statements in your code.&amp;nbsp; We hope to support this in the future.&amp;nbsp; For now, if you create hand-written ODS results, you'll have to navigate to the location you created the ODS results file and explicitly open it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Casey&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2019 03:04:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-ODS-output/m-p/548385#M7338</guid>
      <dc:creator>CaseySmith</dc:creator>
      <dc:date>2019-04-04T03:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio ODS output</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-ODS-output/m-p/687506#M9404</link>
      <description>&lt;P&gt;SAS really needs to allow for SAS code to direct the SAS Studio HTML output to save via some path. This is unacceptable, especially for those of us who write macros.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:31:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-ODS-output/m-p/687506#M9404</guid>
      <dc:creator>db_at_ccf</dc:creator>
      <dc:date>2020-09-29T13:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio ODS output</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-ODS-output/m-p/687613#M9405</link>
      <description>Hi:&lt;BR /&gt;  I never have a problem with SAS Studio when I'm working on either the SAS OnDemand server or the SAS University Edition Virtual Machine. I either write to WORK (using the %SYSFUNC method shown in the post from 2019) or I make myself a folder under my top Studio folder called output. Then I right click on the output folder and choose Properties and find the correct path location. After that, even with my macro coding, I always have a correct filepath where I can direct my HTML, HTML5, RTF, PDF and EXCEL output. If you are having issues with a particular type of file creation and your Macro code, it would probably be better to open a new track with some code examples instead of adding onto an already solved older track.&lt;BR /&gt;&lt;BR /&gt;Cynthia</description>
      <pubDate>Tue, 29 Sep 2020 18:00:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-ODS-output/m-p/687613#M9405</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-09-29T18:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio ODS output</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-ODS-output/m-p/687629#M9406</link>
      <description>&lt;P&gt;Cynthia,&lt;/P&gt;&lt;P&gt;Working with Andrew DW from SAS, I was able to put together a solution that worked within our server-based SAS Studio environment (due to HIPAA). I'll share it here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here’s what worked, embedded in a macro to save the entire HTML output generated from the macro call. Make sure that the file or directory location in the path already exists. Here, V is a variable used in the procedures while FLDR is the destination directory. Having only the ODS HTML output type open may help to prevent problems mentioned in earlier comments.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%MACRO XBETA (V, FLDR);&lt;/P&gt;&lt;P&gt;filename odsout "/home/…//SASStudioDirect/&amp;amp;FLDR";&lt;/P&gt;&lt;P&gt;ods _all_ close;&lt;/P&gt;&lt;P&gt;ods html path=odsout file="&amp;amp;V..html";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;lots of code&lt;/STRONG&gt;*;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods html close;&lt;/P&gt;&lt;P&gt;%MEND;&lt;/P&gt;&lt;P&gt;%XBETA(V=..., FLDR=...);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code also worked when running a batch job in Linux.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:50:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-ODS-output/m-p/687629#M9406</guid>
      <dc:creator>db_at_ccf</dc:creator>
      <dc:date>2020-09-29T18:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio ODS output</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-ODS-output/m-p/687634#M9407</link>
      <description>Hi:&lt;BR /&gt;  Yes, having an explicit folder so you can direct output there is perfect!. I'm glad you got it worked out.&lt;BR /&gt;Cynthia</description>
      <pubDate>Tue, 29 Sep 2020 19:12:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-ODS-output/m-p/687634#M9407</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-09-29T19:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio ODS output</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-ODS-output/m-p/687641#M9408</link>
      <description>&lt;P&gt;One more thing... you can add this before the ODS HTML CLOSE; statement.&lt;/P&gt;&lt;P&gt;proc printto log="/home/.../&amp;amp;FLDR/logfile.log";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will shunt the log file to the same directory.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:29:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-ODS-output/m-p/687641#M9408</guid>
      <dc:creator>db_at_ccf</dc:creator>
      <dc:date>2020-09-29T19:29:49Z</dc:date>
    </item>
  </channel>
</rss>

