Skip to main content



      Home
Home » Archived » EGL Development Tools » IBM i program call limitations maximum of 35 parameters(IBM i program call limitations maximum of 35 parameters)
IBM i program call limitations maximum of 35 parameters [message #867546] Tue, 01 May 2012 06:58 Go to next message
Eclipse UserFriend
http: //publib.boulder.ibm.com/infocenter/iadthelp/v7r1/index.jsp?topic=/com.ibm.etools.iseries.javatools.doc/topics/t5call2.html

Program call bean limitations

Program call definitions that invoke a program can have a maximum of 35 parameters.
Program call definitions that invoke a procedure in a service program can have a maximum of 7 parameters

Are there any other way


Egon
Re: IBM i program call limitations maximum of 35 parameters [message #868399 is a reply to message #867546] Tue, 01 May 2012 18:20 Go to previous messageGo to next message
Eclipse UserFriend
That is indeed a Toolbox limitation...

One workaround is to use a data structure as a parameter.

For example, on the RPG side, here's a program with one entry parameter consisting of a data structure containing 40 subfields:

D MyRPG           PR                  ExtPgm('MYRPG')  
D  parmDS1                            LikeDS(DS1)        
                                                         
D DS1             DS                  qualified          
D  parm1                         2                       
D  parm2                         2                       
D  parm3                         2                       
D  parm4                         2                       
D  parm5                         2                       
D  parm6                         2                       
D  parm7                         2                       
D  parm8                         2                       
D  parm9                         2                       
D  parm10                        2                       
D  parm11                        2                       
D  parm12                        2                       
D  parm13                        2             
D  parm14                        2             
D  parm15                        2             
D  parm16                        2             
D  parm17                        2             
D  parm18                        2             
D  parm19                        2             
D  parm20                        2             
D  parm21                        2             
D  parm22                        2             
D  parm23                        2             
D  parm24                        2             
D  parm25                        2             
D  parm26                        2             
D  parm27                        2             
D  parm28                        2             
D  parm29                        2             
D  parm30                        2                              
D  parm31                        2                              
D  parm32                        2                              
D  parm33                        2                              
D  parm34                        2                              
D  parm35                        2                              
D  parm36                        2                              
D  parm37                        2                              
D  parm38                        2                              
D  parm39                        2                              
D  parm40                        2                              
                                                                
D MyRPG           PI                                            
D  parmDS1                            LikeDS(DS1)               
                                                                
 /free                                                          
  parmDS1.parm1  = ' 1';               
  parmDS1.parm40 = '40';               
                                       
  *inlr = *on;

 /end-free

You can use more than one data structure as parameters (up to the 35 parm limit), use any of the data types in your structures, use arrays and arrays of structures, etc.

--Dan

Re: IBM i program call limitations maximum of 35 parameters [message #868419 is a reply to message #867546] Tue, 01 May 2012 19:23 Go to previous message
Eclipse UserFriend

You might also want to look into XMLService....it uses a completely different underlying mechanism for making program calls...

See:
http://www.ibmsystemsmag.com/ibmi/developer/rpg/EGL-and-XMLService--Hand,-Meet-Glove/

--Dan
Previous Topic:Debugger options
Next Topic:dojo-openlayers in EDT?
Goto Forum:
  


Current Time: Sun Aug 31 01:18:02 EDT 2025

Powered by FUDForum. Page generated in 0.03709 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top