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

Reply via email to