Not so. Pick will pass the target and next record and fire off again the
next time the target is recognized.

t pt data
PT DATA A1 as of 08/14/19 11.02.42

  record 1
  record 2
tg tagged 1
  record 4
  record 5
  record 6
tg tagged 2
  record 7
  record 8
  record 9

Ready; T=0.01/0.01 13:35:53
pipe < pt data|rexx pt|cons
  record 2
  record 1
  record 4
tg tagged 1
  record 6
  record 5
  record 7
tg tagged 2
  record 9
  record 8
Ready; T=0.01/0.01 13:36:27



--
Mike Harding
z/VM System Support

[email protected]
[email protected]
(925) 672-3922 | (925) 672-4403 (h)
(925) 323-2070 (m)
/sp


CMSTSO Pipelines Discussion List <[email protected]> wrote on
08/14/2019 11:22:45 AM:

> From: Rob van der Heij <[email protected]>
> To: [email protected]
> Date: 08/14/2019 11:23 AM
> Subject: [EXTERNAL] Re: swap two records
> Sent by: CMSTSO Pipelines Discussion List <[email protected]>
>
> On Wed, 14 Aug 2019 at 20:18, Michael Harding <[email protected]>
wrote:
>
> > Perhaps simpler, as a rexx stage:
> >
> > '|a:Pick anycase from 1+ == /'tag'/ count 2',
>
>
> Notice that PICK will do the trick only once for the entire stream. I
read
> Mike's "now and then" as multiple swapped records in a single stream, so
> that's why I opted for BETWEEN instead.
>
> Sir Rob the Plumber
>
> >
> >
>

Reply via email to