<?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: Where is _DATAOUT documented in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Where-is-DATAOUT-documented/m-p/744935#M9980</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/52739"&gt;@M_Dexter&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi Tom,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you so much for your request.&amp;nbsp; We have added a new_DATAOUT topic to the SAS Studio documentation.&lt;/P&gt;
&lt;P&gt;You can check it out at &lt;A href="https://go.documentation.sas.com/doc/en/webeditorcdc/3.6/webeditorrepodg/p0x0ais77chznqn1dul4barfyo6m.htm" target="_self"&gt;Exporting a File That Uses the _DATAOUT Macros&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let us know if you have additional feedback!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Marie&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Thanks.&amp;nbsp; But I am confused by the language in the document.&amp;nbsp; It talks about _DATAOUT macros, but the code does not use any macros.&amp;nbsp; Just macro variables (also called SYMBOLS in the SAS documentation).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am also confused by the location of this document.&amp;nbsp; It is placed in the section on how to modify a repository of code.&amp;nbsp; It does not appear to me that this functionality is related to the repository feature of SAS/Studio.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are still a lot of unanswered questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is it that triggers the interface to download the file?&amp;nbsp; It seems that the trigger is the use of the _DATAOUT fileref.&lt;/P&gt;
&lt;P&gt;Can the user redirect the _DATAOUT fileref to some existing file and have the system download that file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Jun 2021 13:45:47 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2021-06-01T13:45:47Z</dc:date>
    <item>
      <title>Where is _DATAOUT documented</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Where-is-DATAOUT-documented/m-p/737698#M9945</link>
      <description>&lt;P&gt;I saw an interesting article on this site that seems to saying you can have SAS/Studio download a file that your SAS code generates.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I cannot find ANY documentation on this feature and how to use it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this program in SAS/Studio&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let _DATAOUT_MIME_TYPE=text/csv;
%let _DATAOUT_NAME=class.csv;

data _null_;
  file _dataout dsd ;
  set sashelp.class ;
  if _n_=1 then put 'name,age,sex';
  put name age sex;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Apr 2021 18:37:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Where-is-DATAOUT-documented/m-p/737698#M9945</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-04-28T18:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Where is _DATAOUT documented</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Where-is-DATAOUT-documented/m-p/738207#M9955</link>
      <description>&lt;P&gt;Hi Tom!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don’t see the fileref _dataout officially documented either. It’s part of the (voluminous) precode that is generated by default by SAS Studio.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From SAS Studio 5.2 Enterprise, if I choose options..preferences. Under “code and log” I see “Show generated SAS code in the SAS log”:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bari_sas_0-1619799531141.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/58903i29E85382A9342259/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bari_sas_0-1619799531141.png" alt="Bari_sas_0-1619799531141.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With this preference enabled, when I submit any code from SAS Studio, I see the precode in the log (with filename _DATAOUT shown here at line 20):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bari_sas_1-1619799531145.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/58904iD88143F650A7F51A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bari_sas_1-1619799531145.png" alt="Bari_sas_1-1619799531145.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the existence of that fileref helps the code that you are showing create a file that is downloaded. Here's a doc reference I am finding on the macro variables _DATAOUT_MIME_TYPE &amp;amp; &amp;nbsp;_DATAOUT_NAME :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/doc/en/webeditorcdc/3.6/webeditorrepodg/n0303y7wu1a1myn13kuatdwnfqdy.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/webeditorcdc/3.6/webeditorrepodg/n0303y7wu1a1myn13kuatdwnfqdy.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Let me know if this helps and if there is more information you need.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 16:25:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Where-is-DATAOUT-documented/m-p/738207#M9955</guid>
      <dc:creator>Bari_sas</dc:creator>
      <dc:date>2021-04-30T16:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Where is _DATAOUT documented</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Where-is-DATAOUT-documented/m-p/738214#M9956</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15201"&gt;@Bari_sas&lt;/a&gt;&amp;nbsp;Thanks.&amp;nbsp; I had seen that page, but I am looking for actual documentation on this file download feature.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 16:36:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Where-is-DATAOUT-documented/m-p/738214#M9956</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-04-30T16:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Where is _DATAOUT documented</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Where-is-DATAOUT-documented/m-p/744931#M9979</link>
      <description>&lt;P&gt;Hi Tom,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you so much for your request.&amp;nbsp; We have added a new_DATAOUT topic to the SAS Studio documentation.&lt;/P&gt;
&lt;P&gt;You can check it out at &lt;A href="https://documentation.sas.com/doc/en/webeditorcdc/3.6/webeditorrepodg/p0x0ais77chznqn1dul4barfyo6m.htm" target="_self"&gt;Exporting a File That Uses the _DATAOUT Macros&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let us know if you have additional feedback!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Marie&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 13:37:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Where-is-DATAOUT-documented/m-p/744931#M9979</guid>
      <dc:creator>M_Dexter</dc:creator>
      <dc:date>2021-06-01T13:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Where is _DATAOUT documented</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Where-is-DATAOUT-documented/m-p/744935#M9980</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/52739"&gt;@M_Dexter&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi Tom,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you so much for your request.&amp;nbsp; We have added a new_DATAOUT topic to the SAS Studio documentation.&lt;/P&gt;
&lt;P&gt;You can check it out at &lt;A href="https://go.documentation.sas.com/doc/en/webeditorcdc/3.6/webeditorrepodg/p0x0ais77chznqn1dul4barfyo6m.htm" target="_self"&gt;Exporting a File That Uses the _DATAOUT Macros&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let us know if you have additional feedback!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Marie&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Thanks.&amp;nbsp; But I am confused by the language in the document.&amp;nbsp; It talks about _DATAOUT macros, but the code does not use any macros.&amp;nbsp; Just macro variables (also called SYMBOLS in the SAS documentation).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am also confused by the location of this document.&amp;nbsp; It is placed in the section on how to modify a repository of code.&amp;nbsp; It does not appear to me that this functionality is related to the repository feature of SAS/Studio.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are still a lot of unanswered questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is it that triggers the interface to download the file?&amp;nbsp; It seems that the trigger is the use of the _DATAOUT fileref.&lt;/P&gt;
&lt;P&gt;Can the user redirect the _DATAOUT fileref to some existing file and have the system download that file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 13:45:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Where-is-DATAOUT-documented/m-p/744935#M9980</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-06-01T13:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Where is _DATAOUT documented</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Where-is-DATAOUT-documented/m-p/865258#M10875</link>
      <description>&lt;P&gt;Is there a way of uploading local file into Viya server, similar to this _Dataout way? Otherwise we have to use FTP tools to save to the server first, then use the proc import. It would be very helpful and convenient if a similar approach is available to upload local file directly into Viya / Studio server.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 16:37:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Where-is-DATAOUT-documented/m-p/865258#M10875</guid>
      <dc:creator>david_hou</dc:creator>
      <dc:date>2023-03-20T16:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Where is _DATAOUT documented</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Where-is-DATAOUT-documented/m-p/865260#M10876</link>
      <description>&lt;P&gt;Is there a way of uploading local file into Viya server, similar to this _Dataout way? Otherwise we have to use FTP tools to save to the server first, then use the proc import. It would be very helpful and convenient if a similar approach is available to upload local file directly into Viya / Studio server.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 16:38:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Where-is-DATAOUT-documented/m-p/865260#M10876</guid>
      <dc:creator>david_hou</dc:creator>
      <dc:date>2023-03-20T16:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Where is _DATAOUT documented</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Where-is-DATAOUT-documented/m-p/865505#M10878</link>
      <description>&lt;P&gt;To address the following question:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Is there a way of uploading local file into Viya server, similar to this _Dataout way? Otherwise we have to use FTP tools to save to the server first, then use the proc import. It would be very helpful and convenient if a similar approach is available to upload local file directly into Viya / Studio server.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is not an automated process that makes local files from your client PC available to the SAS Viya server. I suggest the following blog as a resource:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/sgf/2022/02/14/where-are-the-files-that-you-have-access-to-through-sas-studio/" target="_blank"&gt;https://blogs.sas.com/content/sgf/2022/02/14/where-are-the-files-that-you-have-access-to-through-sas-studio/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;..and if you have follow up questions I would be happy to address them via a tracking entry opened to Technical Support. This will help us have a direct dialog if I need more information about your Viya environment.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 17:27:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Where-is-DATAOUT-documented/m-p/865505#M10878</guid>
      <dc:creator>Bari_sas</dc:creator>
      <dc:date>2023-03-21T17:27:12Z</dc:date>
    </item>
  </channel>
</rss>

