That is brilliant - thank you

This is what I used: call bpxwunix 'sort -k2r -k1 ',in.,out.,msg.


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 <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of 
Patrick Hayward
Sent: Thursday, September 9, 2021 8:39 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: OMVS Sort Question

Can you not use -k2,2r

Zlinux
>From the man page
KEYDEF  is  F[.C][OPTS][,F[.C][OPTS]]  for start and stop position, where F is 
a field number and C a character position in the field; both are origin 1, and 
the stop position defaults to the
       line's end.  If neither -t nor -b is in effect, characters in a field 
are counted from the beginning of the preceding whitespace. OPTS is one or more 
single-letter ordering options [bdfgiMh‐
       nRrV], which override global ordering options for that key. If no key is 
given, use the entire line as the key.


Unix System Services
You can indicate the start of a sorting key with:

  -k m[.n][options]

  where m and the optional n are positive integers. You can choose options from
  the set bdfiMnr (described previously) to specify the way in which sort does
  comparisons for that sorting key. Ordering options set for a key override 
global
  ordering options. If you do not specify any options for the key, the global
  ordering options are used.


Patrick 

----------------------------------------------------------------------
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

Reply via email to