# Parameters to MAINUSER

**URL:** <https://techcommunity.softwareag.com/t/parameters-to-mainuser/183995>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-Utilities\
**Created:** [September 22, 2015, 3:49pm UTC](https://techcommunity.softwareag.com/t/parameters-to-mainuser/183995 "2015-09-22T15:49:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hein2](https://avatars.discourse-cdn.com/v4/letter/h/848f3c/32.png) [@Hein2](https://techcommunity.softwareag.com/u/Hein2)\
**Post date:** [September 22, 2015, 3:49pm UTC](https://techcommunity.softwareag.com/t/parameters-to-mainuser/183995/1 "2015-09-22T15:49:59Z")

</div>

To whom it may concern,

I just want to know if I pass the parameters correctly to the subprogram MAINUSER, I want to do this programmatic. When I do it from Program MAINCALL manually it works.

I’m not sure if I use the command parameters correctly.

See my little test program:

000010 \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
000020 \* SYSMAIN TEST PROGRAM UNSING MAINUSER SUBPROGRAM  
000030 \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
000040 DEFINE DATA LOCAL  
000050 1 CMD (A250)  
000060 1 SYSMAIN-Command (A250)  
000070 END-DEFINE  
000080 COMPRESS  
000090 ‘C SA HEIN FM LIB NWK TO LIB SYSTEM REP’  
000100 INTO CMD  
000110 SYSMAIN-Command := CMD  
000120 CALLNAT ‘MAINUSER’ SYSMAIN-Command  
000130 \*\*display SYSMAIN-Command  
000140 END

Error code:  
NAT0935 Conflicting number of parameters (Subprogram MAINUSER/SYSMAIN/22/10)  
VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV  
0120 CALLNAT ‘MAINUSER’ SYSMAIN-Command

I want to use it later from a WSDL, but want to test it first.

Any suggestion will be appreciated

Kind Regards

---

<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:** [September 22, 2015, 4:00pm UTC](https://techcommunity.softwareag.com/t/parameters-to-mainuser/183995/2 "2015-09-22T16:00:17Z")

</div>

Use:  
CALLNAT ‘MAINUSER’ command error message library  
with:  
1 command (A250)  
1 error (N4) /\* return code issued by SYSMAIN  
1 message (A72) /\* The message corresponding to the error  
1 library (A8) /\* no meaning  
This should work.

Kind Regards

---

<div class="post-metadata">

**Author:** ![Hein2](https://avatars.discourse-cdn.com/v4/letter/h/848f3c/32.png) [@Hein2](https://techcommunity.softwareag.com/u/Hein2)\
**Post date:** [September 22, 2015, 4:42pm UTC](https://techcommunity.softwareag.com/t/parameters-to-mainuser/183995/3 "2015-09-22T16:42:29Z")

</div>

Steffen

Thank you very much!

It works!

Mit freundlichen Grüßen / Kind regards 😃

---

<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, 3:34pm UTC](https://techcommunity.softwareag.com/t/parameters-to-mainuser/183995/4 "2021-04-02T15:34:16Z")

</div>


