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
 

 

Problem in Sorting the data

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
akshathan

New User


Joined: 18 Aug 2006
Posts: 45

PostPosted: Mon Sep 14, 2009 5:07 pm    Post subject: Problem in Sorting the data
Reply with quote

Hi All,

I have an input file which has multiple records associated with a customer id. For instance i have 13 records associated with the customer id 69456, also to differentiate between these 13 records i have a field which will have record number relative to the customer id.

When i am sorting this file on Cusid, i am not able to find the records in the same order as before sorting. The reason why i am telling this is the field on which i am sorting is same for all 13 records so both input and output should be same.But in this case i am able to find the difference.

I have attached the screen shot in the document.

Can some one please help me on this.
[/url]
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Mon Sep 14, 2009 5:21 pm    Post subject: Reply to: Problem in Sorting the data
Reply with quote

do not post attachment, not everybody can look at them,
also why waste 120 KB for a jpeg when a simple text cut and paste would use less space and give the same amount of info...
the attachemnt has been deleted
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: Mon Sep 14, 2009 8:34 pm    Post subject:
Reply with quote

Hello,

Quote:
also to differentiate between these 13 records i have a field which will have record number relative to the customer id.

When i am sorting this file on Cusid, i am not able to find the records in the same order as before sorting.
Do you want the output records within this differentiation field or the original sequence? Will either/both give the same results?
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: Mon Sep 14, 2009 8:59 pm    Post subject:
Reply with quote

akshathan,

If you need the duplicate records in their original order, use:

Code:

//DFSPARM DD *
   OPTION EQUALS
/*
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 Sorting of hex values Saurabh_mi DFSORT/ICETOOL 11 Thu May 25, 2017 3:49 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Group Data based on a key Arun Raj DFSORT/ICETOOL 7 Thu Apr 27, 2017 11:29 pm
No new posts unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm


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