UCBS: 0000 13AF ABCD FFFF
Is the order he/we want to have the sort return. What you get is ABCD FFFF 0000 13AF Big Problem. -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Steve Comstock Sent: Friday, April 03, 2009 11:26 To: [email protected] Subject: Re: Can I do a Hex Sort in ISPF Edit? Darth Keller wrote: > A co-work has a list of 4 digit UCB's - hexidecimal values - and want's > to sort it as hex-values. It wouldn't be too hard to code up an edit > macro to perform the function, but I don't want to re-invent the wheel and > thought I'd check to see if I'm missing something that already exists. Any > one know of such a beast? > darth I don't see the problem. Get into edit of the file, and issue ==> sort col1 col2 {A|D} where "col1" indicates the first byte of your UCB value and "col2" indicates the last byte; who cares if they're hex? Should work as is; ISPF will treat them as unexamined data and sort by the content. Kind regards, -Steve Comstock The Trainer's Friend, Inc. 303-393-8716 http://www.trainersfriend.com ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

