# Custom DATEFILE in automation designer

**URL:** <https://forums.toadworld.com/t/custom-datefile-in-automation-designer/53187>\
**Category:** Toad for Oracle & DevOps Toolkit\
**Created:** [July 9, 2021, 3:32am UTC](https://forums.toadworld.com/t/custom-datefile-in-automation-designer/53187 "2021-07-09T03:32:23Z")\
**Posts on this page:** 3\
**Page:** 2

<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:** [July 25, 2024, 12:38pm UTC](https://forums.toadworld.com/t/custom-datefile-in-automation-designer/53187/22 "2024-07-25T12:38:47Z")

</div>

I just tested this and it worked fine for me.

Here is my entire app  
 ![image](https://global.discourse-cdn.com/quest/original/3X/5/f/5f3d0d0ccbc32826701db201d1178198847616ca.png)

I have two connections defined

 ![image](https://global.discourse-cdn.com/quest/original/3X/d/5/d575fe9f9fcdc61216398510ab39ade8208c47a9.png)

Here is the query iterator

 ![image](https://global.discourse-cdn.com/quest/original/3X/9/d/9d7363e53aa4e33aae4ef43727e9dd64aee1be9f.png)

Here is the script action. Note the output is set to "One file per script".

 ![image](https://global.discourse-cdn.com/quest/original/3X/f/4/f4d7e993467b3298e289bf47450abdf91ccdce25.png)

I have these script files in c:\temp

 ![image](https://global.discourse-cdn.com/quest/original/3X/3/6/36a8ea81dfd2a0c7230afa233adbb867b61615af.png)

To run it, I right-click to run the app

 ![image](https://global.discourse-cdn.com/quest/original/3X/5/1/5191ec7a6f32b9bd2c6799ddbd247738e48acf66.png)

Then these output files are produced:

 ![image](https://global.discourse-cdn.com/quest/original/3X/0/5/052922bc7b672dd5f49c85a1fd6639832223e7fa.png)

---

<div class="post-metadata">

**Author:** ![WaHe](https://avatars.discourse-cdn.com/v4/letter/w/a88e4f/32.png) [@WaHe](https://forums.toadworld.com/u/WaHe)\
**Post date:** [July 26, 2024, 5:11am UTC](https://forums.toadworld.com/t/custom-datefile-in-automation-designer/53187/23 "2024-07-26T05:11:19Z")

</div>

Thanks, that works. My mistake was that I included the variables in the file list and this probably reset them.

---

<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:** [July 26, 2024, 12:28pm UTC](https://forums.toadworld.com/t/custom-datefile-in-automation-designer/53187/24 "2024-07-26T12:28:11Z")

</div>

> My mistake was that I included the variables in the file list.

I see the variables %QI.FNAME% and %QI.DB% in your file list. If those variables didn't return the full path to an existing file name, that would have caused your action to not run.

[Previous page](https://forums.toadworld.com/t/custom-datefile-in-automation-designer/53187.md?page=1)
