Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
How to sort data

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
Author Message
Venugopalsubbiah

New User


Joined: 12 Aug 2008
Posts: 7
Location: Bangalore

PostPosted: Wed Aug 20, 2008 1:24 am    Post subject: How to sort data
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
References
Moved: Wed Aug 20, 2008 1:37 am by superk From JCL to DFSORT/ICETOOL
PeD

Senior Member


Joined: 26 Nov 2005
Posts: 308
Location: Belgium

PostPosted: Wed Aug 20, 2008 1:50 am    Post subject:
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

Global Moderator


Joined: 23 Nov 2006
Posts: 8643
Location: 221 B Baker St

PostPosted: Wed Aug 20, 2008 1:51 am    Post subject:
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 Moderator


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

PostPosted: Wed Aug 20, 2008 2:12 am    Post subject:
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    Post subject:
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 Moderator


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

PostPosted: Wed Aug 20, 2008 3:07 am    Post subject:
Reply with quote

See my previous answer.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1