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: 58
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: 1537
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 Split file based on comparsion to 2 f... Div Grad DFSORT/ICETOOL 0 Thu Jul 27, 2017 9:16 pm
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts SSH - known_hosts file configuration vasanthz All Other Mainframe Topics 2 Wed Jul 26, 2017 2:10 am
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am


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