# Pass IN/OUT Parameters to executable proc in Editor

**URL:** <https://forums.toadworld.com/t/pass-in-out-parameters-to-executable-proc-in-editor/40080>\
**Category:** Toad for IBM DB2\
**Created:** [October 10, 2017, 10:18am UTC](https://forums.toadworld.com/t/pass-in-out-parameters-to-executable-proc-in-editor/40080 "2017-10-10T10:18:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_D](https://avatars.discourse-cdn.com/v4/letter/p/8e7dd6/32.png) [@Paul\_D](https://forums.toadworld.com/u/Paul_D)\
**Post date:** [October 10, 2017, 10:18am UTC](https://forums.toadworld.com/t/pass-in-out-parameters-to-executable-proc-in-editor/40080/1 "2017-10-10T10:18:46Z")

</div>

Is it possible to pass parameters to a procedure in an open editor and execute from there instead of manually entering the parameters?

For example :

@IN\_PARTY\_ID, **INTEGER** , **99999**

@IN\_ACTIVITY\_TYPE\_ID, **INTEGER** , **5** ;

@IN\_PARTY\_ACTIVITY\_NUMBER, **INTEGER** , **19313**

@IN\_SWITCH, **CHARACTER** , ‘NNNNYNNN’

@IN\_TABLESPACE, **VARCHAR** , 'TS\_SPACE\_01

@OUT\_RETURN\_CODE, **INTEGER**  **0**

@OUT\_RETURN\_MESSAGE, **VARCHAR** ‘-’

CALL “PROC\_99999”.“DM\_MY\_PROC”(@IN\_PARTY\_ID, @IN\_ACTIVITY\_TYPE\_ID, @IN\_PARTY\_ACTIVITY\_NUMBER, @IN\_PROC\_LEVEL, @IN\_SWITCH, @IN\_TABLESPACE, @OUT\_RETURN\_CODE, @OUT\_RETURN\_MESSAGE);

COMMIT;

Thanks,

Paul

---

<div class="post-metadata">

**Author:** ![Db2Developer](https://avatars.discourse-cdn.com/v4/letter/d/b38774/32.png) [@Db2Developer](https://forums.toadworld.com/u/Db2Developer)\
**Post date:** [October 10, 2017, 10:29am UTC](https://forums.toadworld.com/t/pass-in-out-parameters-to-executable-proc-in-editor/40080/2 "2017-10-10T10:29:16Z")

</div>

Hello Paul,

I don’t work for Quest/TOAD, but I know of a solution that should work for you. It sucks you can’t declare variables for Db2 z/OS.

Toad will allow you to blind variables at run time.

To do this first view the Toad Views panel (View --\> Toad Views). Then click on the (x)= link

![toadviews1.png](https://global.discourse-cdn.com/quest/original/2X/4/431c6bf4ff4f601bd5d964366fcff491b9e72357.png)

Then enter then name and value of the parameter or variable you want.

![toadviews2.png](https://global.discourse-cdn.com/quest/original/2X/d/d179b59a6f507f45c2bed2ffd0a18d4590e964f0.png)

I hope this helps you out!

---

<div class="post-metadata">

**Author:** ![Debbie\_Peabody](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/debbie_peabody/32/18_2.png) [@Debbie\_Peabody](https://forums.toadworld.com/u/Debbie_Peabody)\
**Post date:** [October 13, 2017, 4:55pm UTC](https://forums.toadworld.com/t/pass-in-out-parameters-to-executable-proc-in-editor/40080/3 "2017-10-13T16:55:02Z")

</div>

some of our other providers have an execute proc action. Here it prompts you for param values and builds script to execute. Seems to me that could be easily added.

 ![execute proc.png](https://global.discourse-cdn.com/quest/original/2X/7/7ac2db520e4fc00b747df771bd4d0fa61011b099.png)

---

<div class="post-metadata">

**Author:** ![Paul\_D](https://avatars.discourse-cdn.com/v4/letter/p/8e7dd6/32.png) [@Paul\_D](https://forums.toadworld.com/u/Paul_D)\
**Post date:** [October 17, 2017, 10:31am UTC](https://forums.toadworld.com/t/pass-in-out-parameters-to-executable-proc-in-editor/40080/4 "2017-10-17T10:31:45Z")

</div>

This works quite nicely.

Thank you,

Paul

---

<div class="post-metadata">

**Author:** ![Jeff\_Podlasek](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/jeff_podlasek/32/29_2.png) [@Jeff\_Podlasek](https://forums.toadworld.com/u/Jeff_Podlasek)\
**Post date:** [October 18, 2017, 5:22am UTC](https://forums.toadworld.com/t/pass-in-out-parameters-to-executable-proc-in-editor/40080/5 "2017-10-18T05:22:28Z")

</div>

Thanks for the information.

I have created TDB-3491 to track this request.
