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 

SORTOUT between 2 runs differs although expected to be same
Goto page Previous  1, 2
 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
deepa12
Beginner


Joined: 05 Apr 2005
Posts: 131
Topics: 64
Location: chennai

PostPosted: Thu Sep 22, 2005 3:56 am    Post subject: Reply with quote

Thanks for all your help

Got this resolved It wa a simple problem that i had to give
OPTION EQUALS
when the sort field contents are the same the positions of teh records in the o/p files for the 2 runs become unpredictable

Thanks & rgs
deepa
_________________
deepa
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12401
Topics: 75
Location: San Jose

PostPosted: Thu Sep 22, 2005 4:56 am    Post subject: Reply with quote

Quote:

Got this resolved It wa a simple problem that i had to give
OPTION EQUALS
when the sort field contents are the same the positions of teh records in the o/p files for the 2 runs become unpredictable


deepa12,

EQUALS guarantees that the first of a series of equal-keyed records is either first-in (SORT) or from the lowest numbered SORTINnn data set(MERGE). With NOEQUALS, there is a random element to the order in which records with identical control fields will appear in the output. With or without EQUALS, MERGE preserves the order of equal-keyed records within any one data set.

But you still will have a problem with the different sort card. Run the sort using phantom's data which is 3 posts above and you will see the difference.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
deepa12
Beginner


Joined: 05 Apr 2005
Posts: 131
Topics: 64
Location: chennai

PostPosted: Thu Sep 22, 2005 5:27 am    Post subject: Reply with quote

ok.. thanks
_________________
deepa
Back to top
View user's profile Send private message Send e-mail
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


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

PostPosted: Thu Sep 22, 2005 6:59 pm    Post subject: Reply with quote

Wow. Things really got out of hand on this one while I was on vacation. Laughing

I saw the first post in this thread and thought to myself - EQUALS. Then I read through some of the other posts talking about how the third byte affects how the first two bytes are sorted and thought to myself - no way! Seems like everything was eventually straightened out, but it sure took a long time to get there. Very Happy

I'm just skimming the posts I missed while I was gone and commenting if I see something incorrect or unanswered.
_________________
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
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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