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

Remove duplicates from a file


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
chetanambi

New User


Joined: 21 Jan 2012
Posts: 58
Location: India

PostPosted: Thu Nov 22, 2012 5:20 pm
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

Global Moderator


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

PostPosted: Thu Nov 22, 2012 7:23 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 4
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top