<?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: Exporting to shared drive from SAS Server in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-shared-drive-from-SAS-Server/m-p/39705#M4763</link>
    <description>Thanks Tom, I'll contact the SAS admin.</description>
    <pubDate>Tue, 30 Nov 2010 13:04:47 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-11-30T13:04:47Z</dc:date>
    <item>
      <title>Exporting to shared drive from SAS Server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-shared-drive-from-SAS-Server/m-p/39695#M4753</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
We connect to DB2 through our SAS Server and would like to build into our program an export to our local Shared drive however when we do that the path of the file to output to is appended to the server and we get a permissions error:-&lt;BR /&gt;
&lt;BR /&gt;
/*Generic libname assign ----------------------*/&lt;BR /&gt;
%let ennn=653;&lt;BR /&gt;
%let int=D;&lt;BR /&gt;
%inc "/users/ewrk&amp;amp;ennn/autoexec2.sas";&lt;BR /&gt;
&lt;BR /&gt;
/*%inc '/users/ewrk653/sdc_setup.sas';*/&lt;BR /&gt;
&lt;BR /&gt;
/*Create table------------------------------------------------*/&lt;BR /&gt;
/*--Build table/file name--*/&lt;BR /&gt;
%let runDate = %sysfunc(compress(&amp;amp;TCUR_DTE,'-'));&lt;BR /&gt;
%let TableName = TABLE1;/*--Set table name here--*/&lt;BR /&gt;
%let FileName = &amp;amp;TableName&amp;amp;runDate;&lt;BR /&gt;
PROC SQL;&lt;BR /&gt;
CONNECT TO DB2(database=&amp;amp;db2dbdft CONNECTION=GLOBAL);&lt;BR /&gt;
CREATE TABLE WORK.&amp;amp;TableName AS&lt;BR /&gt;
SELECT *&lt;BR /&gt;
FROM CONNECTION TO DB2(&lt;BR /&gt;
&lt;BR /&gt;
SELECT * FROM SCHEMA.TABLE&lt;BR /&gt;
&lt;BR /&gt;
FOR READ ONLY&lt;BR /&gt;
WITH UR&lt;BR /&gt;
&lt;BR /&gt;
);&lt;BR /&gt;
%PUT SQLXMSG=&amp;amp;SQLXMSG;                                                        &lt;BR /&gt;
%PUT SQLXRC=&amp;amp;SQLXRC;&lt;BR /&gt;
DISCONNECT FROM DB2;&lt;BR /&gt;
quit;&lt;BR /&gt;
run;&lt;BR /&gt;
PROC EXPORT DATA= WORK.&amp;amp;TableName &lt;BR /&gt;
            OUTFILE= "S:\CH\Fin\SYSTEMS\DI\Systems\SAS_EBI\Exports\OUTFILE.txt" &lt;BR /&gt;
            DBMS=TAB REPLACE;&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
-----------------------------------------------------------------------------------&lt;BR /&gt;
ERROR: Insufficient authorization to access &lt;BR /&gt;
       /sas/SAS_9.2/EntBIServer/Lev1/SASApp/S:\CH\Fin\SYSTEMS\DI\Systems\SAS_EBI\Exports\OUTFILE.txt.&lt;BR /&gt;
-----------------------------------------------------------------------------------&lt;BR /&gt;
In this example the file we are trying to export to is 'S:\CH\Fin\SYSTEMS\DI\Systems\SAS_EBI\Exports\OUTFILE.txt'&lt;BR /&gt;
&lt;BR /&gt;
How can we pick up the data from the Server then export it to our shared drive?&lt;BR /&gt;
&lt;BR /&gt;
Any help would be much appreciated.&lt;BR /&gt;
&lt;BR /&gt;
Thanks Brad.</description>
      <pubDate>Thu, 25 Nov 2010 11:33:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-shared-drive-from-SAS-Server/m-p/39695#M4753</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-11-25T11:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to shared drive from SAS Server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-shared-drive-from-SAS-Server/m-p/39696#M4754</link>
      <description>Are you using EG to connect to the SAS server or Base SAS?&lt;BR /&gt;
&lt;BR /&gt;
That aside looking at your error...&lt;BR /&gt;
&lt;BR /&gt;
ERROR: Insufficient authorization to access &lt;BR /&gt;
/sas/SAS_9.2/EntBIServer/Lev1/SASApp/S:\CH\Fin\SYSTEMS\DI\Systems\SAS_EBI\Exports\OUTFILE.txt.&lt;BR /&gt;
&lt;BR /&gt;
It has concatinated your default path with the path you have tried to define.  Is "S" drive known on the SAS server ? I suspect not.  Try a UNC path ie &lt;BR /&gt;
&lt;BR /&gt;
\\ComputerName\ShareName\CH\Fin\SYSTEMS\DI\Systems\SAS_EBI\Exports\OUTFILE.txt.&lt;BR /&gt;
&lt;BR /&gt;
Barry

Message was edited by: twocanbazza</description>
      <pubDate>Thu, 25 Nov 2010 18:49:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-shared-drive-from-SAS-Server/m-p/39696#M4754</guid>
      <dc:creator>twocanbazza</dc:creator>
      <dc:date>2010-11-25T18:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to shared drive from SAS Server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-shared-drive-from-SAS-Server/m-p/39697#M4755</link>
      <description>Thanks Barry.&lt;BR /&gt;
&lt;BR /&gt;
We are using EG.  I like your thinking, that makes sense.  I have tried that but still seem to be having the same problem&lt;BR /&gt;
&lt;BR /&gt;
ERROR: Physical file does not exist, &lt;BR /&gt;
       /sas/SAS_9.2/EntBIServer/Lev1/SASApp/\\SKPEUCH101\SharedData\CH\Fin\SYSTEMS\DI\Systems\SAS_EBI\Exports\OUTFILE.txt.&lt;BR /&gt;
&lt;BR /&gt;
Don't seem to be able to divorce the output path from the Server??</description>
      <pubDate>Fri, 26 Nov 2010 10:22:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-shared-drive-from-SAS-Server/m-p/39697#M4755</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-11-26T10:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to shared drive from SAS Server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-shared-drive-from-SAS-Server/m-p/39698#M4756</link>
      <description>Hmmm.&lt;BR /&gt;
&lt;BR /&gt;
Is the export code generated by EG or did you write it in a code blob?&lt;BR /&gt;
&lt;BR /&gt;
I think I have seen another thread like this somewhere in these forums but not sure what the outcome was.&lt;BR /&gt;
&lt;BR /&gt;
Barry</description>
      <pubDate>Sun, 28 Nov 2010 18:32:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-shared-drive-from-SAS-Server/m-p/39698#M4756</guid>
      <dc:creator>twocanbazza</dc:creator>
      <dc:date>2010-11-28T18:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to shared drive from SAS Server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-shared-drive-from-SAS-Server/m-p/39699#M4757</link>
      <description>I'm pretty sure that this is happening because in your EG session you're running this code on a unix server. Because of that, unix isn't recognizing either the S:\ or the \\SKPEUCH101 notation as the start of a directory structure, and is trying to append the name you provide to the default directory that SAS starts in.&lt;BR /&gt;
&lt;BR /&gt;
Some options:&lt;BR /&gt;
- Submit the code to a Windows server that can access both DB2 and your \\SKPEUCH101 server;&lt;BR /&gt;
- Run it on your local PC, if it can do both of the above (will probably be slow);&lt;BR /&gt;
- If you're using a unix/Windows facility to mount Windows drives on your unix server, changing the UNC format from Windows to unix should work;&lt;BR /&gt;
- Save the dataset to an acceptable location on your unix server, and FTP it over to your Windows server.&lt;BR /&gt;
&lt;BR /&gt;
  Tom</description>
      <pubDate>Sun, 28 Nov 2010 23:07:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-shared-drive-from-SAS-Server/m-p/39699#M4757</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2010-11-28T23:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to shared drive from SAS Server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-shared-drive-from-SAS-Server/m-p/39700#M4758</link>
      <description>Hi Barry,&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the reply, the code is not written by EG so it must be a blob.  The frustrating thing is that we are able to create an EG processing step that will complete the export but we don't seem to have any control over it other than in the wizard i.e. we can't make it dynamic etc.&lt;BR /&gt;
&lt;BR /&gt;
Cheers.</description>
      <pubDate>Mon, 29 Nov 2010 09:08:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-shared-drive-from-SAS-Server/m-p/39700#M4758</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-11-29T09:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to shared drive from SAS Server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-shared-drive-from-SAS-Server/m-p/39701#M4759</link>
      <description>Thanks Tom,&lt;BR /&gt;
&lt;BR /&gt;
Yes that seems to be the issue, I'm probably being over optimistic to think it would be straight forward.  What would the Unix UNC format look like, that sounds like the best option?&lt;BR /&gt;
&lt;BR /&gt;
Many thanks</description>
      <pubDate>Mon, 29 Nov 2010 09:11:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-shared-drive-from-SAS-Server/m-p/39701#M4759</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-11-29T09:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to shared drive from SAS Server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-shared-drive-from-SAS-Server/m-p/39702#M4760</link>
      <description>I think Tom is on the right track so will leave you two to it.&lt;BR /&gt;
&lt;BR /&gt;
Hopefully works &lt;BR /&gt;
&lt;BR /&gt;
Barry</description>
      <pubDate>Mon, 29 Nov 2010 18:38:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-shared-drive-from-SAS-Server/m-p/39702#M4760</guid>
      <dc:creator>twocanbazza</dc:creator>
      <dc:date>2010-11-29T18:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to shared drive from SAS Server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-shared-drive-from-SAS-Server/m-p/39703#M4761</link>
      <description>That's really hard to say. You'd need to ask the system administrator.&lt;BR /&gt;
&lt;BR /&gt;
A directory that's frequently available to users on unix systems is /home/uuu, where uuu is your userid.&lt;BR /&gt;
&lt;BR /&gt;
I would ask your SAS system administrator.&lt;BR /&gt;
&lt;BR /&gt;
Tom</description>
      <pubDate>Tue, 30 Nov 2010 01:25:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-shared-drive-from-SAS-Server/m-p/39703#M4761</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2010-11-30T01:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to shared drive from SAS Server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-shared-drive-from-SAS-Server/m-p/39704#M4762</link>
      <description>Thanks for your help anyway Barry

Message was edited by: BradB</description>
      <pubDate>Tue, 30 Nov 2010 13:03:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-shared-drive-from-SAS-Server/m-p/39704#M4762</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-11-30T13:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to shared drive from SAS Server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-shared-drive-from-SAS-Server/m-p/39705#M4763</link>
      <description>Thanks Tom, I'll contact the SAS admin.</description>
      <pubDate>Tue, 30 Nov 2010 13:04:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-shared-drive-from-SAS-Server/m-p/39705#M4763</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-11-30T13:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to shared drive from SAS Server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-shared-drive-from-SAS-Server/m-p/39706#M4764</link>
      <description>Brad,&lt;BR /&gt;
&lt;BR /&gt;
I have had this problem for years and was never able to find the ideal solution you are looking for when using EG an a Unix server. But there are various workarounds in EG depending on what you are doing with this file afterward.&lt;BR /&gt;
&lt;BR /&gt;
I'd recommend an FTP program like Filezilla or AceFTP to quickly connect to the server's file system and copy it to your computer or shared drives. Setting up an automatic email of your output could have the same effect adn your email might be able to route it appropriately to a shared folder.&lt;BR /&gt;
&lt;BR /&gt;
For files that are being shared with the company, your SAS admin may have a internal web folder that you can save your results to when you run SAS and then  access the files through a bookmark in IE or Firefox.&lt;BR /&gt;
&lt;BR /&gt;
If you are trying to provide the data or a spreadsheet rather than a report, you could also try proc export to have the data sent to an Access or XLS file on your computer or shared drive. You will need to have PC Files Server (psfservice.exe) running locally when you run proc export in EG, but it can place your file on any of your drives.&lt;BR /&gt;
&lt;BR /&gt;
None of it is as simple as running SAS on your own computer as most of the samples out there show, but hopefully one of these directions will help. If Tech Support gives you a more elegant solution, please share.</description>
      <pubDate>Mon, 06 Dec 2010 23:26:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-shared-drive-from-SAS-Server/m-p/39706#M4764</guid>
      <dc:creator>rab24</dc:creator>
      <dc:date>2010-12-06T23:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to shared drive from SAS Server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-shared-drive-from-SAS-Server/m-p/410745#M26362</link>
      <description>&lt;P&gt;I have a very similar problem.&lt;/P&gt;
&lt;P&gt;We used to have desktop licenses for SAS/PC, and recently moved to a server solution (also PC). And its giving us endless grief. Desktop setups are just so much simpler to work with. We can't import/export files to/from network drives, even with the network drives mapped.&lt;BR /&gt;After a while we figured out that we can import, if you use the import step in EG, but not have any code accociated with it. Similarly we can export excel files to the network, but we can't export SAS data files (.sas7bdat) files to the network wit this method. It keeps on giving the error "Unable to export to xxxxxx.sas7bdat. Please ensure the target file is not already open within your project. If so, please close the file and try again."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd appreciate it if anyone has any insights...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 02:46:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-shared-drive-from-SAS-Server/m-p/410745#M26362</guid>
      <dc:creator>GenDemo</dc:creator>
      <dc:date>2017-11-06T02:46:31Z</dc:date>
    </item>
  </channel>
</rss>

