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
 

 

In Duplicates elimination which record is moved to output...

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

New User


Joined: 23 Jul 2008
Posts: 29
Location: Little Rock - Arkansas

PostPosted: Thu Jul 02, 2009 11:34 am    Post subject: In Duplicates elimination which record is moved to output...
Reply with quote

Hi,

As per the below sort card i am eliminating duplicates and kindly let me know which record is picked while eliminating duplicates in a file.

Is it that only first record will be picked and moved to output file if there are many records with duplicates???.

Because in my case even though i am eliminating duplicates of 5,6CH,A bytes the rest of the records data vary and i have to pick only first row n in my case its picking 2nd row.

SORT FIELDS=(5,6,CH,A)
SUM FIELDS=NONE

Thx,
Satish
Back to top
View user's profile Send private message

bipinpeter

Active User


Joined: 18 Jun 2007
Posts: 213
Location: Cochin/Kerala/India

PostPosted: Thu Jul 02, 2009 12:15 pm    Post subject:
Reply with quote

Hi satish,
As per my understan if you use EQUALS parameter along with SORT FIELDS the first record will go to your output file and second record tretaed as the duplicate.simply it will maintain the order.
I think default EQUALS parameter is enabled.If EQUALS is not in effect we cant say which record will go to output file.

Correct me if i am wrong
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: Thu Jul 02, 2009 8:51 pm    Post subject:
Reply with quote

Yes, with EQUALS, the first record is kept. Without EQUALS, any record can be kept.

EQUALS is NOT the shipped default for DFSORT, although the site can change the installation default to EQUALS.

To use EQUALS, you can just specify:

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 How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts JES2 doesn't honor the priority of th... Aron Lendvai JCL & VSAM 7 Thu Jun 29, 2017 1:41 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Need to write record of PS File in ex... Chandan1993 JCL & VSAM 1 Wed Jun 07, 2017 1:35 am
No new posts getting three output files out of JOI... migusd SYNCSORT 7 Mon Jun 05, 2017 11:30 pm


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