× 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.



Hi Lim

Also, you have to use the entire optional parameter group, so you have to pass parameters 11 & 12, I believe.

Vern

-------------- Original message ----------------------
From: "Lim Hock-Chai" <Lim.Hock-Chai@xxxxxxxxxxxxxxx>
Thank you all. I RTM and kind of suspected that the 10th parameter is
what I needed. Most api has the length either in the front portion of
the parm or as an additional param that is right before/after the
char(*) parameter. I just need some confirmation. :)



"Scott Klement" <rpg400-l@xxxxxxxxxxxxxxxx> wrote in message
news:<mailman.14554.1222805741.2545.rpg400-l@xxxxxxxxxxxx>...
Hi Lim,

The required parameter list in your e-mail is difficult to read (you
must've put it in a proportional font, and added spaces to try to line

things up -- resulting in a mess when viewed properly with a
fixed-width
font). So I'll assume your required parameter list is the same as
IBM's...

In most case, that means that there should be another parameter that
caller must use to tell this api how long this Call Stack Entry
parameter is.

Yes, there *is* another parameter providing the length. It's
parameter
#10. Here's a link to the Information center:


http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/apis/QMHSNDP
M.htm

Note that parameter 10 is named "Length of call stack entry". It's an

optional parameter. If it's not passed, the manual says:

Note: The actual length of the call stack entry name cannot exceed
4096 characters. If this parameter is not used, the value
for
the call stack entry parameter is assumed to be 10
characters
in length.

So if you don't pass the optional parameter for the length of the call

stack entry, it assumes the length to be 10 -- that's why you see so
many examples where 10 is shown in the prototype.

The manual is your friend :)

--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.