Thanks Rob & Glenn.
This looks like what I need, though I'm not sure I really understand how it
works yet. Which might explain why, even following your advice, it won't
terminate.
Using cons as a placeholder for my processing, my main pipe does:
'pipe (end ?)',
'| <' file,
'| fromtarget locate ,'cpss',',
'|e: totarget locate ,'bod',',
'| rexx (' efn 'exec ) ptt1',
'?e:',
'| take 1',
'| var endline'
and ptt1 does:
do forever
'peekto'
'callpipe (end ? name ptt1)',
'|*.input.0:',
'| fromtarget locate ,'cpss',',
'| totarget locate ,'sdcp',',
'| cons',
'|*.output.0:'
'readto'
end
I get the output I expect, but after its done it doesn't terminate. HI breaks
in the callpipe.
ian
...