<?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>Question Re: Data Services Script to move excel file in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/data-services-script-to-move-excel-file/qaa-p/314175#M886</link>
    <description>&lt;P&gt;Below shell script should help.&lt;/P&gt;&lt;P&gt;$Variable = exec('sh',' -c "mv &amp;lt;FilePath&amp;gt;/&amp;lt;FileName&amp;gt; &amp;lt;ArchicePath&amp;gt;"',8); &lt;/P&gt;</description>
    <pubDate>Fri, 23 Dec 2016 09:35:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-12-23T09:35:31Z</dc:date>
    <item>
      <title>Data Services Script to move excel file</title>
      <link>https://community.sap.com/t5/technology-q-a/data-services-script-to-move-excel-file/qaq-p/314169</link>
      <description>&lt;P&gt;Hi All, &lt;BR /&gt;&lt;BR /&gt; I'm new to Data Services and need some help in creating a script that will sit at the end of a workflow which will move an excel file (.xls) from one folder location to an archive folder. The file move needs to complete so that when the workflow is executed the following day, the dataflow before the script picks up the new file (hence the wildcard * in the file name)  &lt;/P&gt;&lt;P&gt;&lt;BR /&gt; exec('cmd.exe','Move \\FAS2050N1\Groups\Reports\Business Intelligence\Excel Based Feeds\AACC\Warehouse Feed\Daily CDN Export*.xls \\FAS2050N1\Groups\Reports\Business Intelligence\Excel Based Feeds\AACC\Warehouse Feed\Archive',&lt;STRONG&gt;1&lt;/STRONG&gt;);&lt;/P&gt;&lt;P&gt;The workflow validates and executes but I get error 50306.&lt;/P&gt;&lt;P&gt;I don't want to go down the route of creating a .bat file on the server &lt;BR /&gt;&lt;BR /&gt; Kind Regards &lt;BR /&gt; Wardie&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 17:09:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/data-services-script-to-move-excel-file/qaq-p/314169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-11-02T17:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Data Services Script to move excel file</title>
      <link>https://community.sap.com/t5/technology-q-a/data-services-script-to-move-excel-file/qaa-p/314170#M881</link>
      <description>&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;exec('cmd','Move \\FAS2050N1\Groups\Reports\Business Intelligence\Excel Based Feeds\AACC\Warehouse Feed\Daily CDN Export*.xls \\FAS2050N1\Groups\Reports\Business Intelligence\Excel Based Feeds\AACC\Warehouse Feed\Archive');&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Murali&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2016 04:57:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/data-services-script-to-move-excel-file/qaa-p/314170#M881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-11-03T04:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Data Services Script to move excel file</title>
      <link>https://community.sap.com/t5/technology-q-a/data-services-script-to-move-excel-file/qaa-p/314171#M882</link>
      <description>&lt;P&gt;Thanks for the input Murali put unfortunately your suggestion didn't work.&lt;/P&gt;&lt;P&gt;The exec function requires a Flag integer at the end of the statement. I've also tried the Flag integer 8 which does validate and states that its run successfully but it hasn't moved the file at all. The Flag integer 8 basically overrides an error code if ones occurred or not&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2016 18:59:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/data-services-script-to-move-excel-file/qaa-p/314171#M882</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-11-03T18:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Data Services Script to move excel file</title>
      <link>https://community.sap.com/t5/technology-q-a/data-services-script-to-move-excel-file/qaa-p/314172#M883</link>
      <description>&lt;P&gt;Hi Gavin,&lt;/P&gt;&lt;P&gt;with out flat we can move file from one location to another location,I have been implemented in my job and successfully moved file. try with print function using flag &lt;/P&gt;&lt;P&gt;print(exec('cmd','Move \\FAS2050N1\Groups\Reports\Business Intelligence\Excel Based Feeds\AACC\Warehouse Feed\Daily CDN Export*.xls \\FAS2050N1\Groups\Reports\Business Intelligence\Excel Based Feeds\AACC\Warehouse Feed\Archive',8));&lt;/P&gt;&lt;P&gt;Hope it should be work and if it get's error, the error will be print.&lt;/P&gt;&lt;P&gt;Thanks,Murali&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 04:54:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/data-services-script-to-move-excel-file/qaa-p/314172#M883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-11-04T04:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Data Services Script to move excel file</title>
      <link>https://community.sap.com/t5/technology-q-a/data-services-script-to-move-excel-file/qaa-p/314173#M884</link>
      <description>&lt;P&gt;Has anyone successfully setup a file move script before? If so, could you send me step by step instructions with screenshots please?&lt;/P&gt;&lt;P&gt;Your help would be much appreciated&lt;/P&gt;&lt;P&gt;Kind  Regards&lt;/P&gt;&lt;P&gt;Wardie&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2016 23:33:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/data-services-script-to-move-excel-file/qaa-p/314173#M884</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-12-07T23:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Data Services Script to move excel file</title>
      <link>https://community.sap.com/t5/technology-q-a/data-services-script-to-move-excel-file/qaa-p/314174#M885</link>
      <description>&lt;P&gt;You don't need a script. Simply use the file_move built-in  fundtion. From the SAP Data Services Reference Guide:&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;
Moves an existing file to a different location using the same file name or a different file name. Moves a group of files indicated by a wildcard to a different existing directory. Overwrites any existing target file(s) when overwrite flag is set to 1. Original file does not exist in the original location after file_move.&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;There are a couple of examples in that guide, too.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 10:25:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/data-services-script-to-move-excel-file/qaa-p/314174#M885</guid>
      <dc:creator>former_member187605</dc:creator>
      <dc:date>2016-12-08T10:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Data Services Script to move excel file</title>
      <link>https://community.sap.com/t5/technology-q-a/data-services-script-to-move-excel-file/qaa-p/314175#M886</link>
      <description>&lt;P&gt;Below shell script should help.&lt;/P&gt;&lt;P&gt;$Variable = exec('sh',' -c "mv &amp;lt;FilePath&amp;gt;/&amp;lt;FileName&amp;gt; &amp;lt;ArchicePath&amp;gt;"',8); &lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2016 09:35:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/data-services-script-to-move-excel-file/qaa-p/314175#M886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-12-23T09:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Data Services Script to move excel file</title>
      <link>https://community.sap.com/t5/technology-q-a/data-services-script-to-move-excel-file/qaa-p/314176#M887</link>
      <description>&lt;P&gt;TRy exec('cmd','Move \\FAS2050N1\Groups\Reports\Business Intelligence\Excel Based Feeds\AACC\Warehouse Feed\Daily CDN Export*.xls \\FAS2050N1\Groups\Reports\Business Intelligence\Excel Based Feeds\AACC\Warehouse Feed\Archive',8) should work..&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2017 09:49:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/data-services-script-to-move-excel-file/qaa-p/314176#M887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-02-27T09:49:15Z</dc:date>
    </item>
  </channel>
</rss>

