Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ 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
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    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

PeD

Active User


Joined: 26 Nov 2005
Posts: 456
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

Site Director


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

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: 7130
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: 7130
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts Innovations in Your Mainframe Sort Arun Raj PC Guides & IT News 4 Wed Mar 15, 2017 10:38 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts SORT requirement sjiraga COBOL Programming 6 Thu Mar 09, 2017 9:11 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us