OUTFIL SPLIT. Something also from the mists of time, by no coincidence, is this: https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.1.0/com.ibm.zos.v2r1.icea100/ice2ca_Example_11._Sort_with_Pipes_and_OUTFIL_SPLIT.htm
TBH, I probably wrote that and Frank made it worth reading. :-) Cheers, Martin Martin Packer Systems Investigator & Performance Troubleshooter, IBM +44-7802-245-584 email: martin_pac...@uk.ibm.com Twitter / Facebook IDs: MartinPacker Blog: https://mainframeperformancetopics.com Mainframe, Performance, Topics Podcast Series (With Marna Walle): https://anchor.fm/marna-walle Youtube channel: https://www.youtube.com/channel/UCu_65HaYgksbF6Q8SQ4oOvA From: Paul Gilmartin <0000000433f07816-dmarc-requ...@listserv.ua.edu> To: IBM-MAIN@LISTSERV.UA.EDU Date: 22/09/2020 20:31 Subject: [EXTERNAL] Re: SORT question: How to both remove records from a file AND write removed records to a 2nd output? Sent by: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Tue, 22 Sep 2020 20:08:12 +0100, Martin Packer wrote: > >SAVE has, to my mind, been most invaluable. Prior to this you had to >figure out the boolean complement of the INCLUDE= clause. With more than >one INCLUDE= clause in a sort it became hairier, requiring De Morgan's >Law*. :-) SAVE made this a lot simpler and less error prone. > Yet adding a NOT operator to the grammar (no one has mentioned that there is one) would relieve programmers of the chore of rewriting complex Boolean expressions with De Morgan's Law. >"Card Dealer" not so much. > I don't know "Card Dealer". Does that amount to having multiple OUTFILs using different tags? Thanks, gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN