× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.