eliminate duplicates from my dataset member using selcopy



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

eliminate duplicates from my dataset member using selcopy

Postby anand1928 » Wed Jun 24, 2009 9:38 am

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
anand1928
 
Posts: 3
Joined: Wed Jun 24, 2009 9:32 am
Has thanked: 0 time
Been thanked: 0 time

Re: eliminate duplicates from my dataset member using selcopy

Postby dick scherrer » Thu Jun 25, 2009 4:19 am

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: eliminate duplicates from my dataset member using selcopy

Postby anand1928 » Thu Jun 25, 2009 5:19 pm

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..
anand1928
 
Posts: 3
Joined: Wed Jun 24, 2009 9:32 am
Has thanked: 0 time
Been thanked: 0 time

Re: eliminate duplicates from my dataset member using selcopy

Postby expat » Thu Jun 25, 2009 7:28 pm

If the worst comes to the worst, could you not invoke SORT from within SELCOPY ?
expat
 
Posts: 459
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 8 times

Re: eliminate duplicates from my dataset member using selcopy

Postby anand1928 » Thu Jun 25, 2009 7:32 pm

Selcopy is different from SORT...If you want i will just post you the sample code.......
anand1928
 
Posts: 3
Joined: Wed Jun 24, 2009 9:32 am
Has thanked: 0 time
Been thanked: 0 time

Re: eliminate duplicates from my dataset member using selcopy

Postby dick scherrer » Fri Jun 26, 2009 2:53 am

Hello,

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

Without this, we cannot help much :)
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post