Good News Everybody!
The new search engine is LIVE!
Please report any problems to david (at) midrange.com.
|
Dean, you pass a pointer field to a packed field: data type mismatch. I would use a datastructure or one single field, each parameter seperated by a space or a specified seperator (semi-colon), numerics will be placed as character strings using %editc. The receiving programme would parse the different elements. Of course both programmes should "know" how many parameters to pass and receive. Just my 2 euro cents. Regards, Carel Teijgeler *********** REPLY SEPARATOR *********** On 9-7-04 at 11:26 dclowe@xxxxxxxxxx wrote: >Hi, I don't know if this can be done or not but I'm going to have a crack at >it. > >I'm trying to create a program that calls other programs based on the >program name and parameters that are determined at runtime. My first >attempt has not been too successful, I have two RPG programs: CALLER and >CALLEE. Here is the source: >I would have expected that the INQTY field in CALLEE would have been >populated with the value 100 which I assigned to it in the CALLER program. > The program runs and bombs in CALLEE with decimal data error. Now, why >am I trying to do this? Well I want to call my lookup programs in a >generic fashion from a single program but I don't want to have a huge >select statement saying when the program is CALLEE use this Plist and so >on, I want to pass in the name of the program and what it's parameter >types and values are and call the program. (I will also want to retreive >the program's updated variables when I get back to CALLER). > >Does this make sense, do you think it can even be done? TIA for your help.
This mailing list archive is Copyright 1997-2026 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.