Field, Alan C. wrote:
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.
Well sure, if your talking Character hex; I thought you
were talking true binary values; with hex on:
000001
0044444
0000000
--------------
000002 ®
1A44444
3F00000
--------------
000003 ¿ò
AC44444
BD00000
--------------
000004
FF44444
FF00000
Now I understand what you were saying.
-----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
--
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