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 

Sort Issue

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


Joined: 20 Mar 2006
Posts: 133
Topics: 58

PostPosted: Fri Jul 07, 2006 11:44 am    Post subject: Sort Issue Reply with quote

Hi All,

Here the sort issue ( I thought it is better to explain with an example.)

Input file

0012
0013
1131
1132
0011
0012
1111
1112


Output file
0011
0012
1111
1112
0012
0013
1131
1132

If you see here records with 00 should not be sorted, But next few records after the 00 should be sorted.

Can this be done?

- Martin
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Fri Jul 07, 2006 11:58 am    Post subject: Reply with quote

Quote:

If you see here records with 00 should not be sorted, But next few records after the 00 should be sorted.


Martin,

What about Records 1 & 2 in your output ? Why are they sorted?

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


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

PostPosted: Fri Jul 07, 2006 1:07 pm    Post subject: Reply with quote

Martin,

Huh? It's not clear at all what "rules" you want to use for sorting. I can't see any obvious pattern in the output records. Please explain clearly and in detail the "rules" you want to use to get from input to output.
_________________
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
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