Kris and Glenn,
Thanks for the ideas, sometimes when thoughts start down the wrong path,
it's difficult to find the way back.
Kris: I always knew there was a good portion of magic inside Pipes, but a
"NewtWord" stage!??
Looks like I'll have to search through the PIPELINES news files again! ;-)
I fiddled with Kris' example for a while, but much as my own attempts did,
it didn't got lost on its own path.
Glenn's example, while more complex, did get much closer. After a few
tweaks (posted below, with some small changes to the detail file just to
help me spot any missing pieces), it did the trick.
Thanks, guys!
Mike Walter
Aon Corporation
The opinions expressed herein are mine alone, not my employer's.
/* */ address command
mst.1='lua x APP1'
mst.2='lub x APP2'
mst.3='luc x APP3'
mst.4='lud x APP4'
mst.0=4
dtl.1=':FIXEDA MISC.DATA :FIXEDP BLAHA lua :FIXEDP BLAHB lua :FIXEDP BLAHC
luc :FIXEDP EOL xxx'
dtl.2=':FIXEDA MISC.DATA :FIXEDP BLAHD luc :FIXEDP BLAHE fail :FIXEDP
BLAHF lud :FIXEDP EOL yyy'
dtl.3=':FIXEDA MISC.DATA :FIXEDP BLAHG lub :FIXEDP EOL zzz'
dtl.0=3
'PIPE (END ?)' ,
'| STEM dtl.' ,
'| insert "~" after' ,
'| head: chop before string " :FIXEDP "' ,
'| INSERT / / AFTER' ,
'| all: faninany' ,
'| STRIP LEADING' ,
'| deblock string "~"' ,
'| SPLIT BEFORE STRING ":FIXEDA "' ,
'| CONS' ,
'? head:' ,
'| tail: chop before string "~"' ,
'| split before string " :FIXEDP "' ,
'| match: lookup w3 w1' ,
'| specs 1-* 1 read w3 nw' ,
'| specs w1-3 1 w-1 nw w4;-2 nw / / N' ,
'| all:' ,
'? STEM mst.' ,
'| locate w1' ,
'| match:' ,
'| specs 1-* 1 "n/a " nw' ,
'| all:'
Exit
The information contained in this e-mail and any accompanying documents may
contain information that is confidential or otherwise protected from
disclosure. If you are not the intended recipient of this message, or if this
message has been addressed to you in error, please immediately alert the sender
by reply e-mail and then delete this message, including any attachments. Any
dissemination, distribution or other use of the contents of this message by
anyone other than the intended recipient is strictly prohibited. All messages
sent to and from this e-mail address may be monitored as permitted by
applicable law and regulations to ensure compliance with our internal policies
and to protect our business. E-mails are not secure and cannot be guaranteed to
be error free as they can be intercepted, amended, lost or destroyed, or
contain viruses. You are deemed to have accepted these risks if you communicate
with us by e-mail.