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 copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 pm
No new posts SORT to unpack a feild shr_amar DFSORT/ICETOOL 7 Fri Jul 07, 2017 4:32 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am


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