Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 10375
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 Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm
No new posts Fetching data from JHS as per the cur... arunsoods All Other Mainframe Topics 4 Wed Nov 22, 2017 1:54 pm
No new posts Extract Record using range of Data scorp_rahul23 DFSORT/ICETOOL 3 Wed Nov 15, 2017 11:54 pm
No new posts Having a problem FTP'ng to the MF pahiker All Other Mainframe Topics 2 Fri Nov 10, 2017 8:20 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us