How does one also sort Hex data?



IBM's flagship sort product DFSORT for sorting, merging, copying, data manipulation and reporting. Includes ICETOOL and ICEGENER

How does one also sort Hex data?

Postby lcain » Mon Sep 13, 2010 7:14 pm

Here is an output file I created using this SORT :

SORT FIELDS=(37,8,CH,A,47,8,BI,A)

(the first part of sorting by the module named worked in column 37)
----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9--
 TCPSVT   000F  473C90DA         4  EZACFMMN  000AA0DA     590040045880  C     R0,4(,R4)   
 TCPSVT   000F  473CAD92         9  EZACFMMN  000ABD92     590040045880  C     R0,4(,R4)   
 TCPSVT   000F  473CBBF0       854  EZACFMMN  000ACBF0     590010044770  C     R0,4(,R1)   
 TCPSVT   000F  473CB122         4  EZACFMMN  000AC122     58001004A70E  L     R0,4(,R1)   
 TCPSVT   000F  473CC67E         4  EZACFMMN  000AD67E     590040045880  C     R0,4(,R4)   
 TCPSVT   000F  473C7BC4         8  EZACFMMN  000A8BC4     58001004A70E  L     R0,4(,R1)   
 TCPSVT   000F  473C86B4       438  EZACFMMN  000A96B4     5900B0044770  C     R0,4(,R11)   
 TCPSVT   000F  473208AA       346  EZACFMMN  000018AA     583080005530  L     R3,0(,R8)   
 TCPSVT   000F  473914D4         4  EZACFMMN  000724D4     58E05004A7EE  L     R14,4(,R5)   
 TCPSVT   000F  473ABA44        18  EZACFMMN  0008CA44     B25500E8A714  MVST  R14,R8       
 TCPSVT   000F  473B5C0E         4  EZACFMMN  00096C0E     590010045880  C     R0,4(,R1)   
 TCPSVT   000F  473B7282         5  EZACFMMN  00098282     590040045860  C     R0,4(,R4)   

However, its not completely what I want, I'd also like the data in column 47 to be sorted in order of the
address entrypoint like this:(ie. the first (000018AA) entry at the top, etc. )


----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9--
 TCPSVT   000F  473208AA       346  EZACFMMN  000018AA     583080005530  L     R3,0(,R8)
 TCPSVT   000F  473914D4         4  EZACFMMN  000724D4     58E05004A7EE  L     R14,4(,R5)   
 TCPSVT   000F  473ABA44        18  EZACFMMN  0008CA44     B25500E8A714  MVST  R14,R8       
 TCPSVT   000F  473B5C0E         4  EZACFMMN  00096C0E     590010045880  C     R0,4(,R1)   
 TCPSVT   000F  473B7282         5  EZACFMMN  00098282     590040045860  C     R0,4(,R4) 
 TCPSVT   000F  473C7BC4         8  EZACFMMN  000A8BC4     58001004A70E  L     R0,4(,R1)   
 TCPSVT   000F  473C86B4       438  EZACFMMN  000A96B4     5900B0044770  C     R0,4(,R11)   
 TCPSVT   000F  473C90DA         4  EZACFMMN  000AA0DA     590040045880  C     R0,4(,R4)   
 TCPSVT   000F  473CAD92         9  EZACFMMN  000ABD92     590040045880  C     R0,4(,R4)   
 TCPSVT   000F  473CBBF0       854  EZACFMMN  000ACBF0     590010044770  C     R0,4(,R1)   
 TCPSVT   000F  473CB122         4  EZACFMMN  000AC122     58001004A70E  L     R0,4(,R1)   
 TCPSVT   000F  473CC67E         4  EZACFMMN  000AD67E     590040045880  C     R0,4(,R4)   
"Code'd"

Can someone tell a DFSORT beginner how to accomplish this? (sorry about the formatting)
thanks,
Len
lcain
 
Posts: 2
Joined: Mon Sep 13, 2010 6:29 pm
Has thanked: 0 time
Been thanked: 0 time

Re: How does one also sort Hex data?

Postby Frank Yaeger » Tue Sep 14, 2010 1:59 am

You can use DFSORT's AC format to handle that:

  SORT FIELDS=(37,8,CH,A,47,8,AC,A)   
Frank Yaeger - DFSORT Development Team (IBM) - yaeger@us.ibm.com
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort
User avatar
Frank Yaeger
Global moderator
 
Posts: 1079
Joined: Sat Jun 09, 2007 8:44 pm
Has thanked: 0 time
Been thanked: 15 times

Re: How does one also sort Hex data?

Postby lcain » Tue Sep 14, 2010 5:18 am

Excellent, Thanks for the quick help!
lcain
 
Posts: 2
Joined: Mon Sep 13, 2010 6:29 pm
Has thanked: 0 time
Been thanked: 0 time


Return to DFSORT/ICETOOL/ICEGENER

 


  • Related topics
    Replies
    Views
    Last post