Thanks Rob, Nice explaination too.
I'll go away now. -----Original Message----- From: The IBM z/VM Operating System [mailto:[EMAIL PROTECTED] Behalf Of Rob van der Heij Sent: Wednesday, March 07, 2007 9:05 AM To: [email protected] Subject: Re: Realy simple pipe insert ? Frequently plumbing is easier to operate on a record rather than a set of records. Most of us will resort to some kind of "sipping pipeline" that operates on such a single set (rather than a stream of sets). If you need something that will look at two adjacent records, it sometimes helps to do this: | dup | drop | join , , | Now it's easy to remove the record that has "apple prune" since that represents an apple followed by a prune. After you removed that, you use a "spec w1" will get you the single item per record again. Alternative would be this: | o: if between /apple/ 2 | pick w1 <> /prune/ | o: | Clearly if you know there will be only one apple or one prune, things get way easier... Rob __________________________________________________________________ << ella for Spam Control >> has removed VSE-List messages and set aside VM-List for me You can use it too - and it's FREE! http://www.ellaforspam.com
