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



For character data I don't think you need to worry. For the Dec() ones
you do

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Lim Hock-Chai
Sent: Thursday, January 25, 2007 11:14 AM
To: RPG programming on the AS400 / iSeries
Subject: store procedure - parameter passing 

when calling a store procedure, do I have to pass the exact length of
the inpur parm?
 
Using the following procedure as an example
CREATE PROCEDURE AILSEQMSP        
(                                 
     In    inSerialNo    Char(15),
     In    inOffice      Char(3), 
     In    InSystem      Dec(1,0),
     Out   outErrFlag    Dec(1,0),
     Out   outErrCode    Char(7), 
     Out   TotalRecords  Dec(8,0) 
)                                 
Result Sets 1           
Language RPGLE          
External name AILSEQMRP 

would the following different call statement make a different?
- call AILSEQMSP('A              ', '   ', 1, rsParm1, rsParm2, rsParm3)
- call AILSEQMSP('A', ' ', 1, rsParm1, rsParm2, rsParm3)
- call AILSEQMSP('A  ', '', 1, rsParm1, rsParm2, rsParm3)
 
thanks.

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.