Here is the correct link. The link was mangled in the forwarded e-mail message:
http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/index.jsp?topic=%2Fapis%2Fqzruclsp.htm
-----Original Message-----
From: Allen, Todd
Sent: Monday, November 12, 2012 5:03 PM
To: C programming iSeries / AS400
Subject: RE: [C400-L] Max parameters
Thank you for the info. It turns out that there is a limitation of 7 parameters calling a service program using the Java toolbox. This seems ridiculous but below is the reply given to a colleague from IBM support.
You this but you cannot call a service program with more than 7 parameters. This isn't really a java toolbox limitation, but a limitation on the QZRUCLSP (call service program) API = which is documented here:
http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/index.jsp?topic=3D=%2Fapis%2Fqzruclsp.htm
The toolbox ServiceProgramCall is just calling this API so it is subject to the limitations of that API; therefore, you are only allowed to use 7 parameters to a service program call.
Thanks,
Todd
-----Original Message-----
From: c400-l-bounces@xxxxxxxxxxxx [mailto:c400-l-bounces@xxxxxxxxxxxx] On Behalf Of Sonin,Nikolai
Sent: Monday, November 12, 2012 4:54 PM
To: C programming iSeries / AS400
Subject: Re: [C400-L] Max parameters
COBOL is 255:
http://publib.boulder.ibm.com/infocenter/iseries/v6r1m0/topic/rzasb/sc0925391026.htm
CL is 255:
Look up CALL in the command finder:
http://publib.boulder.ibm.com/infocenter/iseries/v6r1m0/topic/clfinder/finder.htm
Therefore, I would limit my C/C++ programs to 255 to be safe. If the procedure is statically bound and called i.e.: (CALLB) you can go as high as 399 for ILE RPG and ILE COBOL. CL (CALLPRC) is limited to 300.
Nick Sonin
-----Original Message-----
From: c400-l-bounces@xxxxxxxxxxxx [mailto:c400-l-bounces@xxxxxxxxxxxx] On Behalf Of Allen, Todd
Sent: Monday, November 12, 2012 3:01 PM
To: C programming iSeries / AS400
Subject: [C400-L] Max parameters
What is the maximum number of parameters on a C program call on the IBM i system? We are at V6R1. Is there a documentation link that someone can point to that notes this?
Thanks,
Todd
For More Than 80 Years—Delivering Solutions That Exceed Expectations.
This communication and any transmitted documents are intended to be confidential. If there is a problem with this transmission, please contact the sender. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited.
As an Amazon Associate we earn from qualifying purchases.