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: 10310
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 LMINIT problem - not finding DDNAME Danielle.Filteau CLIST & REXX 7 Tue Sep 19, 2017 9:57 pm
No new posts Question related to Data dictionary f... rexx77 SYNCSORT 3 Thu Aug 31, 2017 7:23 am
No new posts Extract Data till prev hour balaji81_k DB2 16 Fri Aug 25, 2017 9:25 pm
No new posts FTP data transfer from PC to Mainfram... AJAYREDDY All Other Mainframe Topics 8 Wed Aug 23, 2017 9:59 pm
No new posts Sorting on text - but in non-alphabet... Roy Ware SYNCSORT 5 Wed Aug 23, 2017 9:15 pm

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