# Toad Automation

**URL:** <https://forums.toadworld.com/t/toad-automation/10830>\
**Category:** Toad for Oracle & DevOps Toolkit\
**Created:** [October 28, 2011, 10:23am UTC](https://forums.toadworld.com/t/toad-automation/10830 "2011-10-28T10:23:14Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ds\_texas\_515](https://avatars.discourse-cdn.com/v4/letter/d/eb9ed0/32.png) [@ds\_texas\_515](https://forums.toadworld.com/u/ds_texas_515)\
**Post date:** [October 28, 2011, 10:23am UTC](https://forums.toadworld.com/t/toad-automation/10830/1 "2011-10-28T10:23:14Z")

</div>

Can the user supply a variable to a toad automation script using. Such as using the set variable.

---

<div class="post-metadata">

**Author:** ![Guest](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@Guest](https://forums.toadworld.com/u/Guest)\
**Post date:** [October 28, 2011, 10:23am UTC](https://forums.toadworld.com/t/toad-automation/10830/2 "2011-10-28T10:23:14Z")

</div>

Hello

Yes, Toad’s automation designer has the following actions available to be built  
into Toad automation scripts, or apps: create variable, set variable, test  
variable, variable prompt. A lot of Toad features which can be automated also  
support variables. For example, if you’re automating a data export, open your  
export dataset action and r-click in the “file” edit box and select “variable”

-Brad  
 ![image001.jpeg](https://global.discourse-cdn.com/quest/original/1X/e8288ef7bf69daaab6959f752b25ca292478b911.jpeg)

---

<div class="post-metadata">

**Author:** ![ds\_texas\_515](https://avatars.discourse-cdn.com/v4/letter/d/eb9ed0/32.png) [@ds\_texas\_515](https://forums.toadworld.com/u/ds_texas_515)\
**Post date:** [October 28, 2011, 11:44am UTC](https://forums.toadworld.com/t/toad-automation/10830/3 "2011-10-28T11:44:44Z")

</div>

I saw the 3 different items that reference variables, However they don’t provide a way to add my own variable, such as I have a variable named “DATE\_DIR” I cannot seem to find a way to add this to the optional variable list.

---

<div class="post-metadata">

**Author:** ![Guest](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@Guest](https://forums.toadworld.com/u/Guest)\
**Post date:** [October 28, 2011, 11:44am UTC](https://forums.toadworld.com/t/toad-automation/10830/4 "2011-10-28T11:44:44Z")

</div>

Which version of toad are you on?

Are you referring to the User Variables list in Options \> Variables?  
 ![image001.jpeg](https://global.discourse-cdn.com/quest/original/1X/e8288ef7bf69daaab6959f752b25ca292478b911.jpeg)

---

<div class="post-metadata">

**Author:** ![ds\_texas\_515](https://avatars.discourse-cdn.com/v4/letter/d/eb9ed0/32.png) [@ds\_texas\_515](https://forums.toadworld.com/u/ds_texas_515)\
**Post date:** [October 28, 2011, 1:43pm UTC](https://forums.toadworld.com/t/toad-automation/10830/5 "2011-10-28T13:43:00Z")

</div>

Version 10.6.1  
the set variable gives two option rman\_log\_location and rman\_backup\_location  
the variable prompt gives the same options  
The test variable has an additional 14 items such as user, pw and DB

Where can I add my date\_dir var

---

<div class="post-metadata">

**Author:** ![ds\_texas\_515](https://avatars.discourse-cdn.com/v4/letter/d/eb9ed0/32.png) [@ds\_texas\_515](https://forums.toadworld.com/u/ds_texas_515)\
**Post date:** [October 28, 2011, 1:45pm UTC](https://forums.toadworld.com/t/toad-automation/10830/6 "2011-10-28T13:45:15Z")

</div>

All of this is part of the automation designer

---

<div class="post-metadata">

**Author:** ![Guest](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@Guest](https://forums.toadworld.com/u/Guest)\
**Post date:** [October 28, 2011, 1:45pm UTC](https://forums.toadworld.com/t/toad-automation/10830/7 "2011-10-28T13:45:15Z")

</div>

The set variable and variable prompt actions only supports user-defined  
variables

Thanks,

Brad  
 ![image001.jpeg](https://global.discourse-cdn.com/quest/original/1X/e8288ef7bf69daaab6959f752b25ca292478b911.jpeg)

---

<div class="post-metadata">

**Author:** ![matt.wilkins](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/matt.wilkins/32/146_2.png) [@matt.wilkins](https://forums.toadworld.com/u/matt.wilkins)\
**Post date:** [October 28, 2011, 1:45pm UTC](https://forums.toadworld.com/t/toad-automation/10830/8 "2011-10-28T13:45:31Z")

</div>

And keep in mind that you can create your own variable based on any of the  
existing system variables defined in options. Example:

User variable MYDAY = system variable %DAY%

---

<div class="post-metadata">

**Author:** ![ds\_texas\_515](https://avatars.discourse-cdn.com/v4/letter/d/eb9ed0/32.png) [@ds\_texas\_515](https://forums.toadworld.com/u/ds_texas_515)\
**Post date:** [November 1, 2011, 1:39pm UTC](https://forums.toadworld.com/t/toad-automation/10830/9 "2011-11-01T13:39:46Z")

</div>

Thanks Brad. I got it.
