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


  • Subject: Re: Calling a program without knowing the parms
  • From: Carel Teijgeler <COTeijgeler@xxxxxxxxx>
  • Date: Wed, 04 Jul 2001 19:23:14 +0200

John,

Just a thought: can you not pass the parameters in one string (a data 
structure) and have the receiving and the calling programming split the 
subfields in usefull work fields. The programme name can be passed as 
another parameter and used on  the CALL-statement: CALL &SOMETHING (in CLP).

Like:          Call Socketprogramme
                  Parm                            ProgrammetoCall 
     10
                  Parm                            DataInRequest 
      256

Socket       Parm            ProgrammeToCall                  10
                  Parm             DataToProces                     256

                 Call               ProgrammeToCall
                 Parm 
DataToProces

This may have been mentioned earlier.

Regards,

Carel Teijgeler

At 10:52 3-7-01 -0500, you wrote:

>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
>+---
>
>
>
>
>---
>Incoming mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.263 / Virus Database: 135 - Release Date: 22-6-01

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.