You could probably use "fillup" before the "gate" if you want to avoid a
gate-dam setup. But I think this one is cute as well

'addpipe (end \ name GREG1.REXX:7)',
   '\ *: ',
   '| o: not fanout ',
   '| d: deal secondary latch ',
   '| *: ',
   '\ o: ',
   '| unique' range 'first',        /* Identify start of a group   */
   '| drop ',                       /* Let first group pass as is  */
   '| spec ,1, ',                   /* Set the latch to discard    */
   '| d: ',
   '| *.output.1: '

As "unique" needs to see beyond the run of records, I think I need a "not
fanout" to throw the latch in time.

Sir Rob the Plumber

On Fri, 12 Apr 2024 at 16:56, Glenn Knickerbocker <[email protected]> wrote:

> Is there anything I'm overlooking that would simplify selecting records
> up to where a column changes?  This does it, but doesn't help if I want
> the rest of the file on another stream:
>
> (end /) ... | first: unique ... first | skip: drop 1 | stop: gate
>  / skip: | rest: fanin | stop: | ...
>  / first: | rest:
>
> ¬R
>

Reply via email to