> From: G Armour
> "... pass a whole" what?

Must... get... sleep... <smile>

I meant to say, "pass a whole bunch of parms in one string, and then
parse them out".  For example, you can do the following:

STRREXPRC MYREXX "parm pgm1 pgm2 pgm3 pgm4"

/* Call several programs with parameter */
PARSE VAR ArgString Parm ArgString

DO UNTIL Program=''
  PARSE VAR ArgString Program ArgString
  IF Program > ''
    "CALL PGM(&Program) PARM(&Parm)"

This will parse the value from the first position of the string, then
parse out as many programs as you have entered, and call each one
passing it the parameter.

In this specific case, it would call four programs (PGM1-PGM4) and pass
each one the value PARM.


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 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.