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

How to handle duplicate records in ezytrieve..


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
lonerusher

New User


Joined: 30 Nov 2010
Posts: 4
Location: India

PostPosted: Wed May 30, 2012 6:46 pm
Reply with quote

1. Driver File primary key(means first file primary in Job Input) should always have unique records if you are using key in Job input. If your driver file do not have unique records you need to declare the Job Input as Null and need to handle the file balancing logic using the DO WHILE logic.

2. Secondary File in Job Input : In secondary file its optional that you will always have unique records means it can have duplicate records for the primary key. Now if you want those duplicate elements in your output file just simply use job input and use if matched logic.
If you don't want duplicates into your output file, then you need to handle that using Job input NULL and do while. Alternatively you can do that using flag logic like storing the primary key into some temp variable and always comparing the new value and last value and then putting your logic.

3. If you are not sure about your input files always use JOB INPUT file as NULL and handle the files using DO while logic.

Enjoy icon_smile.gif ! hope this helps you in future..
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 -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts To fetch records that has Ttamp value... DFSORT/ICETOOL 4
No new posts ICETOOL returns no records JCL & VSAM 1
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Duplicate transid's declared using CEDA CICS 3
Search our Forums:

Back to Top