On Fri, 9 Oct 2020 13:24:47 -0500, Anthony B. wrote:

>Let's assume that 'n' patterns of input exist. Above we see two. Code 'n'
>number of OUTFIL statements, each with their own OUTREC constructs. Sorry I
>don't have an example to show but in the past I've seen many of what's
>being discussed. I've borrowed and taken advice from Sri K. and that's
>always proven to be the path of simplicity.
>
Eek!  Complexity for its own sake?

What if the OP wants the records merged back into a single data set,
preserving their original order (a likely condition)?

I believe Massimo Biancucci  has already posted a simpler more
general solution.

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to