Page 1 of 1

eliminate duplicates from my dataset member using selcopy

PostPosted: Wed Jun 24, 2009 9:38 am
by anand1928
Hi

I need to eliminate duplicates from my dataset member using selcopy tool...can any one help me out with the same...
Though i know it can be removed using SORT ,but the requirement is using selcopy...
Any solutions ,please post......

Eg: My dataset has following records

00000
00000
22555
22555
33636
I have to eliminates duplicates from the same using selcopy

Re: eliminate duplicates from my dataset member using selcopy

PostPosted: Thu Jun 25, 2009 4:19 am
by dick scherrer
Hello and welcome to the forum,

What have you coded so far?

If you post the jcl and control statements you have, someone may be able to offer suggestions.

You might also explain to whoever made up the requirement that selcopy must be used that if the sort product was permitted, this would already be running. . . It is most doubtful that this is a business requirement.

Re: eliminate duplicates from my dataset member using selcopy

PostPosted: Thu Jun 25, 2009 5:19 pm
by anand1928
No..Its not a business requirement....Its a new tool which i am trying to learn..I got stuck up in the code ..so I tried to cleared it.....I will submit the code soon..

Re: eliminate duplicates from my dataset member using selcopy

PostPosted: Thu Jun 25, 2009 7:28 pm
by expat
If the worst comes to the worst, could you not invoke SORT from within SELCOPY ?

Re: eliminate duplicates from my dataset member using selcopy

PostPosted: Thu Jun 25, 2009 7:32 pm
by anand1928
Selcopy is different from SORT...If you want i will just post you the sample code.......

Re: eliminate duplicates from my dataset member using selcopy

PostPosted: Fri Jun 26, 2009 2:53 am
by dick scherrer
Hello,

Yes, do post the code you have so far. . .

Without this, we cannot help much :)