<?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: Error exporting a table using the Scheduler in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Error-exporting-a-table-using-the-Scheduler/m-p/738104#M230186</link>
    <description>&lt;P&gt;Could it be that the scheduled task is executed by the local system account?&lt;/P&gt;
&lt;P&gt;If so, it probably doesn't have access to shared drives.&lt;/P&gt;
&lt;P&gt;Also, if you run as an authorized user, try to use UNC paths instead of mapped letters ("F:"), since the drive mappings doesn't always happens when your run tasks in "background mode".&lt;/P&gt;</description>
    <pubDate>Fri, 30 Apr 2021 07:28:21 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2021-04-30T07:28:21Z</dc:date>
    <item>
      <title>Error exporting a table using the Scheduler</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-exporting-a-table-using-the-Scheduler/m-p/738102#M230184</link>
      <description>&lt;P&gt;I have an Export Step in my SAS EG Project to create a .csv file in a Network location.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When triggering the job manually it works perfectly fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to set up an automated job instead of running it manually using the Scheduler (i.e. using a vbscript).&lt;/P&gt;&lt;P&gt;However, I get the following error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;The open data operation failed. The following error occurred.&lt;BR /&gt;Could not find a part of the path 'F:\path\to\my\file.csv'.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The F: drive is a network drive. It could most likely be that the F:&amp;nbsp;&lt;SPAN&gt;is not accessible in the session context started by the vbscript and that it is accessible in the normal interactive one (when I trigger it manually).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Therefore, my question is: Is there a way to map the F: drive in the vbscript ? Obviously, if a better solution than tweaking the vbscript exist, I will be more than happy to hear it.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 07:16:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-exporting-a-table-using-the-Scheduler/m-p/738102#M230184</guid>
      <dc:creator>KermitTheFrog</dc:creator>
      <dc:date>2021-04-30T07:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error exporting a table using the Scheduler</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-exporting-a-table-using-the-Scheduler/m-p/738104#M230186</link>
      <description>&lt;P&gt;Could it be that the scheduled task is executed by the local system account?&lt;/P&gt;
&lt;P&gt;If so, it probably doesn't have access to shared drives.&lt;/P&gt;
&lt;P&gt;Also, if you run as an authorized user, try to use UNC paths instead of mapped letters ("F:"), since the drive mappings doesn't always happens when your run tasks in "background mode".&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 07:28:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-exporting-a-table-using-the-Scheduler/m-p/738104#M230186</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2021-04-30T07:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error exporting a table using the Scheduler</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-exporting-a-table-using-the-Scheduler/m-p/738106#M230187</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13674"&gt;@LinusH&lt;/a&gt;&amp;nbsp;Thank you for the prompt answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes I was thinking using UNC paths instead of the mapped ones. However, when creating the Export Step in SAS EG, I have to select it manually and I was not able to use the UNC path (Step 4 out of 5 of the Export Step in SAS EG: Specify the location and name for the output file).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 07:41:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-exporting-a-table-using-the-Scheduler/m-p/738106#M230187</guid>
      <dc:creator>KermitTheFrog</dc:creator>
      <dc:date>2021-04-30T07:41:43Z</dc:date>
    </item>
  </channel>
</rss>

