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
 

 

SUGGEST ME TO REMOVE DUPLICATES while loading

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
Sachinincsc

New User


Joined: 01 Oct 2008
Posts: 11
Location: Philadelphia, USA

PostPosted: Tue Oct 21, 2008 3:58 pm    Post subject: SUGGEST ME TO REMOVE DUPLICATES while loading
Reply with quote

Can you please suggest me the LOAD CARD if I need to remove the DUPLICATES and Also the RESUME YES option.

I know RESUME YES will automatically remove the duplicates but in my case there is no primary key on the TABLE.

So the LOAD is not removing the DUPLICATES.

Is There Any way to Check while loading that for certain particular columns if the values are same We can discard the records ??
Back to top
View user's profile Send private message

anandinmainframe

Active User


Joined: 31 May 2007
Posts: 171
Location: India

PostPosted: Tue Oct 21, 2008 4:05 pm    Post subject: Re: SUGGEST ME TO REMOVE DUPLICATES while loading
Reply with quote

Hi Sachin,
As you dont have primary key on the TABLE, why dont you sort it on the whole length.
Back to top
View user's profile Send private message
Sachinincsc

New User


Joined: 01 Oct 2008
Posts: 11
Location: Philadelphia, USA

PostPosted: Tue Oct 21, 2008 4:59 pm    Post subject: Reply to: SUGGEST ME TO REMOVE DUPLICATES while loading
Reply with quote

I Wish I could..

but requirement is little precise as i mentioned. I CANT add a SORT step in the Load JCL.
Back to top
View user's profile Send private message
acevedo

Active User


Joined: 11 May 2005
Posts: 344
Location: Spain

PostPosted: Tue Oct 21, 2008 5:08 pm    Post subject:
Reply with quote

AFAIK, the only way is creating a unique index on those columns.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Tue Oct 21, 2008 6:35 pm    Post subject: Reply to: SUGGEST ME TO REMOVE DUPLICATES while loading
Reply with quote

Quote:
but requirement is little precise as i mentioned. I CANT add a SORT step in the Load JCL.


has anybody thought , instead of removing the duplicates, about removing people who set such &derogatory_adjective requirements ..

Quote:
...the only way is creating a unique index on those columns. ...


but maybe there is also a requirement not to create indexes icon_biggrin.gif

Homework ????
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 -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts Updating the counters after eliminati... PANDU1 DFSORT/ICETOOL 12 Mon Nov 21, 2016 9:47 am
No new posts Remove Special Characters from Mainfr... Rodger Zhang All Other Mainframe Topics 6 Wed Jul 06, 2016 1:12 am
No new posts Remove header only knobi SYNCSORT 5 Mon Feb 15, 2016 10:42 pm
No new posts Append to file, but also remove old r... Garry Carroll JCL & VSAM 3 Mon Jan 25, 2016 8:05 pm


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