Really???? How is your solution a single instruction? Here are single instruction solutions.
"pipe < ddname=sortin | sort unique | > ddname=sortout" or "pipe < your.data | sort unique | > your.output or // EXEC PGM=PIPE,PARM='< your.data | sort unique | > your.output' People really need to stop thinking in terms of JCL and old, slapped together utilities. Don't have the PIPE command? It's included with BatchPipes. OREXXMan Would you rather pass data in move mode (*nix piping) or locate mode (Pipes) or via disk (JCL)? Why do you think you rarely see *nix commands with more than a dozen filters, while Pipelines specifications are commonly over 100s of stages, and 1000s of stages are not uncommon. REXX is the new C. On Thu, Nov 11, 2021 at 6:50 AM Ron Thomas <ron5...@gmail.com> wrote: > Thanks a lot Massimo. It worked like a charm :) > > Thanks, > Ron T > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN