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