Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Need the detail about ZD and BI format in SORT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Need the detail about ZD and BI format in SORT
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: 3158
Location: Tucson AZ

PostPosted: Wed Nov 29, 2006 7:21 pm    Post subject:
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    Post subject: Re: Need the detail about the format
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: 3158
Location: Tucson AZ

PostPosted: Wed Nov 29, 2006 7:53 pm    Post subject:
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 Moderator


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

PostPosted: Wed Nov 29, 2006 10:21 pm    Post subject:
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:

http://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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to pick only YYMMDD from DATE1P (... atulbaviskar SYNCSORT 1 Wed Mar 22, 2017 11:39 am
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts Innovations in Your Mainframe Sort Arun Raj PC Guides & IT News 4 Wed Mar 15, 2017 10:38 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts SORT requirement sjiraga COBOL Programming 6 Thu Mar 09, 2017 9:11 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us