IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Need the detail about ZD and BI format in SORT


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
saurabh7878
Warnings : 1

New User


Joined: 02 Jun 2005
Posts: 16

PostPosted: Wed Nov 29, 2006 7:15 pm
Reply with quote

hi all
I have the following sorting condition in my code
SORT FIELDS=(55,20,CH,A,34,8,ZD,A,25,8,BI,A)

can somebody tell me more about the ZD and BI format.......I try to google it but no help...

Thank in advance
Saurabh
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Wed Nov 29, 2006 7:21 pm
Reply with quote

CH is character, ZD is zoned decimal and BI is binary.
Back to top
View user's profile Send private message
saurabh7878
Warnings : 1

New User


Joined: 02 Jun 2005
Posts: 16

PostPosted: Wed Nov 29, 2006 7:35 pm
Reply with quote

Hi williams
Thanks for the info but i need more detail about this BI and ZD that in which specific scenario it is used.....
We are converting this sort jCL into Unix and i need to find out the corresponding Unix formats
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Wed Nov 29, 2006 7:53 pm
Reply with quote

the sort sequence for character data is cut and dried straight low value to high value.

Zoned decimal is sequenced numericaly with attention paid to the sigh.

Binary is (if I recall correctly) sequenced numerically with attention paid to the sign.

a ZD -5 is smaller than a +5 but C5 is smaller that D5. The same goes for binary numbers, a x'FB' is -5 and x'05' is +5.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Wed Nov 29, 2006 10:21 pm
Reply with quote

BI and CH are unsigned bits (e.g. X'00'-X'FF'). Both collate according to the EBCDIC collating sequence (e.g. 'A' = X'C1' before '0' = X'F0').

ZD is signed zoned decimal in the form X'FdFd...sd' where d is a digit (0-9) and s is the sign (usually C or F for plus and D for minus). ZD collates as signed numbers (e.g. -123 before +123).

I can't help you with the "corresponding UNIX" formats.

For more information on DFSORT's formats, see:

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA20/C.1?DT=20060615185603
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Populate last day of the Month in MMD... SYNCSORT 2
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts JCL sort card - get first day and las... JCL & VSAM 9
Search our Forums:

Back to Top