It seems that you need a combination of IF and NEXTLINE and JOIN stages:
...
| IF SUBSTR 1.2 of W1 == /++/ & SUBSTR 1.2 OF NEXTLINE \== /++/ THEN JOIN 
1' ,
...

those a NBI (Not Built In) stages, of course.  Is it Friday yet?  ;-)
Wouldn't it be nice if it were that simple - that Pipes could just sort of 
figure out "what we meant" and do it?  In a perfect world...
But then we'd all be out of work (except as Pipes "what we meant" stage 
debuggers, and that would not be a job anyone would want!

Mike Walter
Hewitt Associates
Any opinions expressed herein are mine alone and do not necessarily 
represent the opinions or policies of Hewitt Associates.




"Glenn Knickerbocker" <[email protected]> 

Sent by: "CMSTSO Pipelines Discussion List" <[email protected]>
07/28/2009 03:19 PM
Please respond to
"CMSTSO Pipelines Discussion List" <[email protected]>



To
[email protected]
cc

Subject
parsing a SYSMOD






Anybody got sample code to parse the MCSs out of an SMP/E SYSMOD?  I've
done some simplistic parsing of a file that contains only the MCSs, but
it doesn't handle skipping the actual element data and is a little iffy
on quotes and comments.  Comments aren't essential (I should only ever
see them inside the MCS and on a single line), but I do have to worry
about periods inside quotes falling at the end of a record:

++HFS(WHATEVER) LINK('/long/url/here/with/lots.of.stuff/with.dots.in.it.
continued') .

Thanks--
¬R






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. 

Reply via email to