# Export Dataset : Automation manager dynamically picking a file

**URL:** <https://forums.toadworld.com/t/export-dataset-automation-manager-dynamically-picking-a-file/41018>\
**Category:** Toad for Oracle & DevOps Toolkit\
**Created:** [June 6, 2018, 1:36am UTC](https://forums.toadworld.com/t/export-dataset-automation-manager-dynamically-picking-a-file/41018 "2018-06-06T01:36:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![satish.bagali](https://avatars.discourse-cdn.com/v4/letter/s/22d042/32.png) [@satish.bagali](https://forums.toadworld.com/u/satish.bagali)\
**Post date:** [June 6, 2018, 1:36am UTC](https://forums.toadworld.com/t/export-dataset-automation-manager-dynamically-picking-a-file/41018/1 "2018-06-06T01:36:22Z")

</div>

Hi,  
I am new to Toad and have a question related to ‘Automation Designer’ picking up a file **dynamically**. Below is the problem description.

I have a SELECT query which is placed in a file, “ **Account.sql** ”. The requirement is to ‘Schedule’ an ‘Export Dataset’ of this SQL query to a CSV file. By using ‘Automation Designer’, I created a new ‘App’ to perform this task successfully. Below are the steps.

a. Create a new App.  
b. Under the ‘Import/Export’ tab, choose the action, ‘Export Dataset’.  
c. Right-click the action ‘Export Dataset’ choose Properties and manually copy the SQL query in ‘Dataset’ tab.  
d. Schedule/Run the App and it works fine.

**However, the challenge here I have is, copying the SQL query manually(Step-c above) whenever it changes(it changes often). So, is there a way of making Toad to dynamically pick the ‘Account.sql’ file from a specified location whenever it is scheduled to run?**

* * *

**Thanks,  
Satish**

---

<div class="post-metadata">

**Author:** ![damir.vadas\_250](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/damir.vadas_250/32/37_2.png) [@damir.vadas\_250](https://forums.toadworld.com/u/damir.vadas_250)\
**Post date:** [June 6, 2018, 5:00am UTC](https://forums.toadworld.com/t/export-dataset-automation-manager-dynamically-picking-a-file/41018/2 "2018-06-06T05:00:04Z")

</div>

Could this helps you somehow:

[damir-vadas.blogspot.com/…/toads-automation-designer-and-sqlplus.html](https://damir-vadas.blogspot.com/2016/10/toads-automation-designer-and-sqlplus.html)

---

<div class="post-metadata">

**Author:** ![JohnDorlon](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/johndorlon/32/9997_2.png) [@JohnDorlon](https://forums.toadworld.com/u/JohnDorlon)\
**Post date:** [June 6, 2018, 5:38am UTC](https://forums.toadworld.com/t/export-dataset-automation-manager-dynamically-picking-a-file/41018/3 "2018-06-06T05:38:14Z")

</div>

Someone else was asking how to do the same thing recently.

Here is how you can work around it:

[community.toadworld.com/…/35360](https://community.toadworld.com/products/toad-for-oracle/f/10/t/35360)

---

<div class="post-metadata">

**Author:** ![satish.bagali](https://avatars.discourse-cdn.com/v4/letter/s/22d042/32.png) [@satish.bagali](https://forums.toadworld.com/u/satish.bagali)\
**Post date:** [June 22, 2018, 1:32am UTC](https://forums.toadworld.com/t/export-dataset-automation-manager-dynamically-picking-a-file/41018/4 "2018-06-22T01:32:46Z")

</div>

Hi,  
thank you very much for answering my question. Due to some reasons, I have paused working on that issue. Once I check the solution, I will get back to you on it.

Regards,  
Satish

---

<div class="post-metadata">

**Author:** ![JohnDorlon](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/johndorlon/32/9997_2.png) [@JohnDorlon](https://forums.toadworld.com/u/JohnDorlon)\
**Post date:** [June 22, 2018, 5:29am UTC](https://forums.toadworld.com/t/export-dataset-automation-manager-dynamically-picking-a-file/41018/5 "2018-06-22T05:29:38Z")

</div>

After this request and another like it came in, I added the ability to specify a file to get the SQL from. It is in the current beta, which you can get here: [https://community.toadworld.com/products/toad-for-oracle/toad\_for\_oracle\_beta\_program/](https://community.toadworld.com/products/toad-for-oracle/toad_for_oracle_beta_program/)

---

<div class="post-metadata">

**Author:** ![satish.bagali](https://avatars.discourse-cdn.com/v4/letter/s/22d042/32.png) [@satish.bagali](https://forums.toadworld.com/u/satish.bagali)\
**Post date:** [June 25, 2018, 6:19am UTC](https://forums.toadworld.com/t/export-dataset-automation-manager-dynamically-picking-a-file/41018/6 "2018-06-25T06:19:53Z")

</div>

Hi John,  
I installed the new beta version and tried the solution your suggested, It works perfectly fine for the requirement I had mentioned earlier.

Thanks a lot for your sense of urgency and implementing this feature though only two people have asked for it. I appreciate your quick response.

Regards,  
Satish
