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
 

 

Remove duplicates from a file

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

New User


Joined: 21 Jan 2012
Posts: 53
Location: India

PostPosted: Thu Nov 22, 2012 5:20 pm    Post subject: Remove duplicates from a file
Reply with quote

Hi ,

i have to eliminate duplicates from a file which is of length 100 and format FB by using sort card , below is the criteria to eliminate duplicates.

i have to compare the entire record of the input file with next record (except two fields in between) and duplicates should be written to an output file.

fields to be eliminate SD2E-KEYED-TIME, SD2E-CUST-NO

below is the layout of the input file and out put should be in the same layout.

Code:

SD2E-DIV SD2E-BUS-DATE....SD2E-KEYED-TIME....SD2E-CUST-NO....SD2E-DISC-AMT SD2E-DISC-PERCENT
Back to top
View user's profile Send private message

Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1531
Location: Andromeda Galaxy

PostPosted: Thu Nov 22, 2012 7:23 pm    Post subject:
Reply with quote

Please provide the details

Atleast , Please provide the details atleast with cols on as you expect too much from others to do it for you

Code:
SD2E-DIV SD2E-BUS-DATE....SD2E-KEYED-TIME....SD2E-CUST-NO....SD2E-DISC-AMT SD2E-DISC-PERCENT


Quote:
i have to compare the entire record of the input file with next record (except two fields in between) and duplicates should be written to an output file.


When you say duplicates do you want all records with duplicate key to be written to output or only duplicate records apart from the from for the key to be written to output

Eg

Input

Code:
A
A
A
A
B
C
D

Output

Code:
A
A
A
A


Or

Output

Code:
A SECOND REC
A THIRD REC
A FOURTH REC


Please try to explain better in future as people help in their free time and cant expect them to do everything and feed it for you for free
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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm


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