MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

sorting signed numeric fields

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
yatri
Beginner


Joined: 23 Aug 2005
Posts: 12
Topics: 10

PostPosted: Mon Oct 03, 2005 11:59 am    Post subject: sorting signed numeric fields Reply with quote

My sort card is as follows:
SORT FIELDS=(5,13,CH,A,36,14,CH,A)



Where the field at position 5, 13 is character type, but field at position 36, 14 is signed numeric. So, is the above sort card is proper, or I need to give something else instead of CH for numeric-type? However, with this sort card also I m getting the sorting done.
_________________
Thanks,
Gayatri.
Back to top
View user's profile Send private message
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Mon Oct 03, 2005 1:21 pm    Post subject: Reply with quote

It depends on what you mean by "signed numeric". DFSORT has many different types of signed numeric formats (FI, PD, ZD, FS, SFF). Please show an example of exactly what the signed numeric values look like for positive and negative numbers.
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Tue Oct 04, 2005 12:25 am    Post subject: Reply with quote

Yatri,

Check this thread.
http://mvsforums.com/helpboards/viewtopic.php?t=4842

This discusses possible problems with using CH/BI on Signed numeric fields. As Frank Said, there are different types of signed numerics (Zoned Decimal - ZD, Packed Decimal - PD....). Show us how your input file look like. Paste couple of lines from your input file.

Also, use HEX ON and paste the Hex values along with the original record, so that we can see how the data is stored.

Thanks,
Phantom
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group