<?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: Code to Download a File from SAS Studio (Viya) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Code-to-Download-a-File-from-SAS-Studio-Viya/m-p/985474#M379856</link>
    <description>&lt;P&gt;Requesting for a SAS program. To be more precise on my requirement. We are in the phase of migration from SAS AML 7.1 on-prem solution to SAS AML on Viya 4 hosted as managed service on cloud. Our business need to move the old attachments (older than 5 years) and comments to be migrated in an archive folder in cloud and needed a facility to download it on demand based on CB or Internal auditors. So my request is to in request i will give the file name and path in content server so that sas program is required to download the file as per need.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Mar 2026 08:02:05 GMT</pubDate>
    <dc:creator>Ezhil_Michael</dc:creator>
    <dc:date>2026-03-27T08:02:05Z</dc:date>
    <item>
      <title>Code to Download a File from SAS Studio (Viya)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Code-to-Download-a-File-from-SAS-Studio-Viya/m-p/892672#M352587</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are running SAS Viya on Unix and every time I create a file on SAS Studio, I need to manually download the file into windows. I am somehow trying to automate this.&lt;/P&gt;
&lt;P&gt;Any idea what code runs in the background when you right click on a folder in SAS Viya and chose Download File ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or if anyone knows an alternate solution to automate the download of files from SAS Studio to Windows directory ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind Regards and Thanks in Advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&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="Balli_0-1693885730426.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/87610i192F4BFAEF4D70D9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Balli_0-1693885730426.png" alt="Balli_0-1693885730426.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Download.jpg" style="width: 213px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/87611iD285E15FF2C49151/image-size/large?v=v2&amp;amp;px=999" role="button" title="Download.jpg" alt="Download.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 03:49:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Code-to-Download-a-File-from-SAS-Studio-Viya/m-p/892672#M352587</guid>
      <dc:creator>Balli</dc:creator>
      <dc:date>2023-09-05T03:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Code to Download a File from SAS Studio (Viya)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Code-to-Download-a-File-from-SAS-Studio-Viya/m-p/892677#M352590</link>
      <description>&lt;P&gt;Have your admins set up a shared network resource which is mounted on the SAS server and accessible by the Windows clients. Once you know the UNIX path to the mountpoint, you use it in your SAS code.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 06:00:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Code-to-Download-a-File-from-SAS-Studio-Viya/m-p/892677#M352590</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-09-05T06:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Code to Download a File from SAS Studio (Viya)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Code-to-Download-a-File-from-SAS-Studio-Viya/m-p/985242#M379804</link>
      <description>&lt;P&gt;Is there a way to download the file from SAS Viya 4 using some simple scripts like path and file name as input parameters.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2026 13:13:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Code-to-Download-a-File-from-SAS-Studio-Viya/m-p/985242#M379804</guid>
      <dc:creator>Ezhil_Michael</dc:creator>
      <dc:date>2026-03-24T13:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Code to Download a File from SAS Studio (Viya)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Code-to-Download-a-File-from-SAS-Studio-Viya/m-p/985291#M379809</link>
      <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;has already stated, just a script wont work unless your administrators set up a network folder share that is accessible from your SAS server. Once that is done SAS code can be run on Viya 4 that will write to the share. PROC EXPORT would be one option to write SAS data to an Excel spreadsheet or a CSV file.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2026 19:10:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Code-to-Download-a-File-from-SAS-Studio-Viya/m-p/985291#M379809</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2026-03-24T19:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Code to Download a File from SAS Studio (Viya)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Code-to-Download-a-File-from-SAS-Studio-Viya/m-p/985300#M379810</link>
      <description>&lt;P&gt;You should be able to do this with a Viya JOB.&lt;/P&gt;
&lt;P&gt;There should be examples you could module your JOB after that provide a download option for the user.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2026 20:25:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Code-to-Download-a-File-from-SAS-Studio-Viya/m-p/985300#M379810</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2026-03-24T20:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Code to Download a File from SAS Studio (Viya)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Code-to-Download-a-File-from-SAS-Studio-Viya/m-p/985301#M379811</link>
      <description>&lt;P&gt;This works in SAS/Studio used by SAS On Demand for Academics.&lt;/P&gt;
&lt;P&gt;Not sure if it works in SAS/Studio for VIYA.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let fname=example.xlsx;
filename _dataout "~/&amp;amp;fname";
%let _dataout_name=&amp;amp;fname;
%let _dataout_mime_type=application/vnd.openxmlformats-officedocument.spreadsheetml.sheet ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Mar 2026 20:38:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Code-to-Download-a-File-from-SAS-Studio-Viya/m-p/985301#M379811</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2026-03-24T20:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Code to Download a File from SAS Studio (Viya)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Code-to-Download-a-File-from-SAS-Studio-Viya/m-p/985304#M379813</link>
      <description>&lt;P&gt;Please define "simple script". Shell script, SAS program, something else? Which client and server platform?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2026 22:24:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Code-to-Download-a-File-from-SAS-Studio-Viya/m-p/985304#M379813</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2026-03-24T22:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Code to Download a File from SAS Studio (Viya)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Code-to-Download-a-File-from-SAS-Studio-Viya/m-p/985474#M379856</link>
      <description>&lt;P&gt;Requesting for a SAS program. To be more precise on my requirement. We are in the phase of migration from SAS AML 7.1 on-prem solution to SAS AML on Viya 4 hosted as managed service on cloud. Our business need to move the old attachments (older than 5 years) and comments to be migrated in an archive folder in cloud and needed a facility to download it on demand based on CB or Internal auditors. So my request is to in request i will give the file name and path in content server so that sas program is required to download the file as per need.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2026 08:02:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Code-to-Download-a-File-from-SAS-Studio-Viya/m-p/985474#M379856</guid>
      <dc:creator>Ezhil_Michael</dc:creator>
      <dc:date>2026-03-27T08:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Code to Download a File from SAS Studio (Viya)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Code-to-Download-a-File-from-SAS-Studio-Viya/m-p/985481#M379857</link>
      <description>You need to set up storage that is accessible from your SAS server (e.g. through SSH or WEBDAV). Then a SAS program can write there.</description>
      <pubDate>Fri, 27 Mar 2026 12:36:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Code-to-Download-a-File-from-SAS-Studio-Viya/m-p/985481#M379857</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2026-03-27T12:36:16Z</dc:date>
    </item>
  </channel>
</rss>

