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

Problem in Sorting the data


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Mon Sep 14, 2009 5:21 pm
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

Moderator Emeritus


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

PostPosted: Mon Sep 14, 2009 8:34 pm
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 Developer


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

PostPosted: Mon Sep 14, 2009 8:59 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts JCL EXEC PARM data in C Java & MQSeries 2
Search our Forums:

Back to Top