Multi step sort least significant to most significant. Card sorters did 1 column at a time. But the single step with correct options is better.
On Thu, Sep 9, 2021 at 7:24 AM Lionel B. Dyck <[email protected]> wrote: > > I tried sorting by field 1 ascending and then a second sort with field 2 > descending (-r) and field1 was no longer in the correct order ☹ > > But that's what I thought should work as well. > > > Lionel B. Dyck <>< > Website: https://www.lbdsoftware.com > Github: https://github.com/lbdyck > > “Worry more about your character than your reputation. Character is what you > are, reputation merely what others think you are.” - - - John Wooden > > -----Original Message----- > From: IBM Mainframe Discussion List <[email protected]> On Behalf Of > Martin Packer > Sent: Thursday, September 9, 2021 6:51 AM > To: [email protected] > Subject: Re: OMVS Sort Question > > Pipe it through two sort commands? > > And does sort helpfully avoid rearranging records with the same key value? > > Cheers, Martin > > Martin Packer > > WW z/OS Performance, Capacity and Architecture, IBM Technology Sales > > +44-7802-245-584 > > email: [email protected] > > 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: "Lionel B. Dyck" <[email protected]> > To: [email protected] > Date: 09/09/2021 12:25 > Subject: [EXTERNAL] OMVS Sort Question > Sent by: "IBM Mainframe Discussion List" <[email protected]> > > > > I know how to use sort - to a limited degree. > > This will wort a stem using the 2nd field and sort in reverse: > > call bpxwunix 'sort -r -k 2',in.,out.,msg. > > What I would like to do is to sort the 2nd field in reverse and then sort the > 1st field in ascending - this does not seem possible. > > Any tips/pointers? > > Thanks > > > Lionel B. Dyck <>< > Website: > https://www.lbdsoftware.com > > Github: > https://github.com/lbdyck > > > "Worry more about your character than your reputation. Character is what you > are, reputation merely what others think you are." - - - John Wooden > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, send email to > [email protected] 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 [email protected] with the message: INFO IBM-MAIN > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN -- Mike A Schwab, Springfield IL USA Where do Forest Rangers go to get away from it all? ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
