|
|
| Author |
Message |
balukanna
New User
Joined: 09 Apr 2008 Posts: 15 Location: chennai
|
|
|
|
hi,
i need to sort out the repeated values
ex:
i/p
456 200
567 100
456 200
567 200
789 300
o/p
456 200
456 200 |
|
| Back to top |
|
 |
References
|
Posted: Mon May 12, 2008 5:02 pm Post subject: Re: Need to Sort out the repeated values |
 |
|
|
 |
V S Amarendra Reddy
Active User
Joined: 13 Sep 2006 Posts: 73 Location: INDIA
|
|
|
|
Hi,
This DFSORT/ICETOOL job will give you the desired result.
| Code: |
//SORT EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN DD *
456 200
567 100
456 200
567 200
789 300
/*
//OUT DD SYSOUT=*
//TOOLIN DD *
SELECT FROM(IN) TO(OUT) ON(1,3,CH) ON(5,3,CH) ALLDUPS
/*
|
Here I assumed the the two fields are different so we have two on fields.
Regards
Amar |
|
| Back to top |
|
 |
balukanna
New User
Joined: 09 Apr 2008 Posts: 15 Location: chennai
|
|
|
|
hi Amar,
sorry for the delay...
thanks a lot...
its working fine... |
|
| Back to top |
|
 |
|
|