the values:
5000
500F

sort as 
500F
5000

not as hex numbers.
ddk





Steve Comstock <[email protected]> 
Sent by: IBM Mainframe Discussion List <[email protected]>
04/03/2009 11:26 AM
Please respond to
IBM Mainframe Discussion List <[email protected]>


To
[email protected]
cc

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

   z/OS Application development made easier
     * Our classes include
        + How things work
        + Programming examples with realistic applications
        + Starter / skeleton code
        + Complete working programs
        + Useful utilities and subroutines
        + Tips and techniques

==> Check out the Trainer's Friend Store to purchase z/OS  <==
==> application developer toolkits. Sample code in four    <==
==> programming languages, JCL to Assemble or compile,     <==
==> bind and test.                                         <==
==>   http://www.trainersfriend.com/TTFStore/index.html    <==

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


**************************************************************************************
This e-mail message and all attachments transmitted with it may contain legally 
privileged and/or confidential information intended solely for the use of the 
addressee(s). If the reader of this message is not the intended recipient, you 
are hereby notified that any reading, dissemination, distribution, copying, 
forwarding or other use of this message or its attachments is strictly 
prohibited. If you have received this message in error, please notify the 
sender immediately and delete this message and all copies and backups thereof.

Thank you.
**************************************************************************************

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

Reply via email to