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

How to sort data


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

New User


Joined: 12 Aug 2008
Posts: 7
Location: Bangalore

PostPosted: Wed Aug 20, 2008 1:24 am
Reply with quote

I need to reorder the records each time. Just reorder the record sequence. Not changing the data within a record.

How can I do this?

Hope it is very clear.

Thanks,
Venu.
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 459
Location: Belgium

PostPosted: Wed Aug 20, 2008 1:50 am
Reply with quote

No comment, but today I would want to .. icon_exclaim.gif Sorry
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Aug 20, 2008 1:51 am
Reply with quote

Hello,

Quote:
Hope it is very clear.
No, it is not at all clear. . .

Please post some sample input data and the output you want from that input.
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 Aug 20, 2008 2:12 am
Reply with quote

Venu,

Do you mean you want to reorder the records randomly each time you run? I would think you'd need a randomized field in each record that you could change each time and sort on. DFSORT does not have any built-in features to do that kind of thing.
Back to top
View user's profile Send private message
Venugopalsubbiah

New User


Joined: 12 Aug 2008
Posts: 7
Location: Bangalore

PostPosted: Wed Aug 20, 2008 2:18 am
Reply with quote

here you go..

Input:

First name last name sex
aaaaa bbbbbb m
ddddd ffffffffff f
eeeee gggggg f
rrrrrrr tttttttttt m

Output 1: First time:
rrrrrrr tttttttttt m
ddddd ffffffffff f
aaaaa bbbbbb m
eeeee gggggg f


Output 2: Second time:
ddddd ffffffffff f
eeeee gggggg f
aaaaa bbbbbb m
rrrrrrr tttttttttt m

order could be anything....
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 Aug 20, 2008 3:07 am
Reply with quote

See my previous answer.
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 How to split large record length file... DFSORT/ICETOOL 10
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
Search our Forums:

Back to Top