Every time I'm away from plumbing for a few months,
I need to retrain myself.  Here, I'm trying to run
an EXEC as a pipe with a different command name,
"foo", and pass it arguments.  So:

 pipe genservl
     6 *-* 'addstream both ME'
>>>   "addstream both ME"
     7 *-* 'addpipe <' Name  'EXEC B  |  *.input.ME:'
>>>   "addpipe < GENTAPE EXEC B  |  *.input.ME:"
     8 *-* 'callpipe REXX (  *.input.1: foo ) args   | console'
>>>   "callpipe REXX (  *.input.1: foo ) args   | console"
FPLREX045W Stream identifier "input.1" truncated to four characters
FPLMSG002I ... Processing "callpipe REXX ( *.input.1: foo ) args | console"
FPLMSG003I ... Issued from stage 1 of pipeline 1
FPLMSG001I ... Running "genservl"
FPLREX102E Stream inpu not defined
FPLMSG003I ... Issued from stage 1 of pipeline 1
FPLMSG001I ... Running "REXX ( *.input.1: foo ) args"
       +++ RC(102) +++
     9 *-* 'callpipe REXX (  *.1:       foo ) args   | console'
>>>   "callpipe REXX (  *.1:       foo ) args   | console"
FPLREX102E Stream 1 not defined
FPLMSG003I ... Issued from stage 1 of pipeline 1
FPLMSG001I ... Running "REXX ( *.1: foo ) args"
       +++ RC(102) +++
    10 *-* 'callpipe REXX (  *.ME:      foo ) args   | console'
>>>   "callpipe REXX (  *.ME:      foo ) args   | console"
FPLREX102E Stream ME not defined
FPLMSG003I ... Issued from stage 1 of pipeline 1
FPLMSG001I ... Running "REXX ( *.ME: foo ) args"
       +++ RC(102) +++
    11 *-* 'callpipe         *.input.1: | console'
>>>   "callpipe         *.input.1: | console"
/*
   ... copies my stream to the console.  Yay!  But what must
I do to execute it as a pipeline so "parse source" returns "foo"?

Thanks,
gil

Reply via email to