# Invoking Helproutine for other field

**URL:** <https://techcommunity.softwareag.com/t/invoking-helproutine-for-other-field/60050>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [July 1, 2005, 3:36am UTC](https://techcommunity.softwareag.com/t/invoking-helproutine-for-other-field/60050 "2005-07-01T03:36:48Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [July 1, 2005, 3:36am UTC](https://techcommunity.softwareag.com/t/invoking-helproutine-for-other-field/60050/1 "2005-07-01T03:36:48Z")

</div>

Is possible to do that ?

Scheme:  
Field1 \_ (HE=XXX) ------\> F1 -----\> invoke YYY for Field2  
Field2 \_\_\_ (HE=YYY)

Field1 (A1)  
Field2 (A3)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [July 1, 2005, 11:40am UTC](https://techcommunity.softwareag.com/t/invoking-helproutine-for-other-field/60050/2 "2005-07-01T11:40:38Z")

</div>

If you want to invoke YYY for Field1 in any case, why not set HE=YYY instead of HE=XXX ?

---

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [July 1, 2005, 2:44pm UTC](https://techcommunity.softwareag.com/t/invoking-helproutine-for-other-field/60050/3 "2005-07-01T14:44:59Z")

</div>

Because Filed1 is A1 type and Field2 is A3. I can’t define helproutine for Field1 as YYY, because YYY is for A3 field.

I need to change Field2 with helproutine YYY but through Field1. Field2 have to be hidden.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [July 1, 2005, 2:58pm UTC](https://techcommunity.softwareag.com/t/invoking-helproutine-for-other-field/60050/4 "2005-07-01T14:58:03Z")

</div>

You don’t need 2 helproutines then, simply put (HE=‘XXX’,Field2) on Field1, this passes Field2 as a parameter to the helproutine and allows you to modify it from there.

---

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [July 1, 2005, 4:32pm UTC](https://techcommunity.softwareag.com/t/invoking-helproutine-for-other-field/60050/5 "2005-07-01T16:32:57Z")

</div>

Oh thanks;)

And one more thing… how to invoke helproutine with parameters from a program ?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [July 1, 2005, 8:01pm UTC](https://techcommunity.softwareag.com/t/invoking-helproutine-for-other-field/60050/6 "2005-07-01T20:01:33Z")

</div>

You can’t “call” a help routine from a program, just force it to be executed with REINPUT USING HELP MARK \*Field1 in which case the helproutine is executed with all parameters just like it does when you press PF1.

---

<div class="post-metadata">

**Author:** ![Darrell](https://avatars.discourse-cdn.com/v4/letter/d/54ee81/32.png) [@Darrell](https://techcommunity.softwareag.com/u/Darrell)\
**Post date:** [July 1, 2005, 9:19pm UTC](https://techcommunity.softwareag.com/t/invoking-helproutine-for-other-field/60050/7 "2005-07-01T21:19:59Z")

</div>

Or try SET CONTROL ‘Jyyy’, where yyy is the helproutine name. The parameters can be stacked, or AIV, or a number of other options.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [July 1, 2005, 10:02pm UTC](https://techcommunity.softwareag.com/t/invoking-helproutine-for-other-field/60050/8 "2005-07-01T22:02:57Z")

</div>

Well, yes, but %J doesn’t invoke a “regular” field help routine, if that doesn’t matter, it may be an option.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:40pm UTC](https://techcommunity.softwareag.com/t/invoking-helproutine-for-other-field/60050/9 "2021-04-02T14:40:12Z")

</div>


