|
John, We do this via an external mechanism and not directly through parms. The parms are passed in a user space/index. It is very flexible to do it this way, but you have to do a lot of work up front. In October 1999, Midrange Computing published an article called Put It In Storage that describes how you can do this. The code for that article is available here: http://www.midrangecomputing.com/ftp/prog/99/991004.zip I have used this technique in quite a few programs and it works pretty well. Our programs do have a description of parameters that is stored in a database file although that could be passed in a known value like parm_count, parm1, etc. David Morris >>> jross-ml@netshare400.com 07/03/01 09:52AM >>> Is there any way I can call a program from a program without knowing what the second (called) programs name or parameters are at the time I write the first (calling) program. I need to get any parameters back from the second program into the first program. What I am trying to do is write one sockets program that will run on the AS/400 and run a program that was passed to it from a PC and then pass the results to the PC. The pc will format the call and strip out the returned parameters. It is my understanding the QCMDEXEC and Run remote command (ftp) will not return parameters. I have not used ILE very much so it maybe easier then I think. I can write the sockets program it is just the part of calling the second program that I need to know how to handle. Thanks John Ross +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
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.