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
 
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: 1542
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 Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm

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