| Author |
Message |
selvakumar_ms
New User
Joined: 30 Mar 2004 Posts: 8
|
|
|
|
hi,
is there any chance to remove duplicates in jcl sort? |
|
| Back to top |
|
 |
References
|
Posted: Sat Apr 10, 2004 6:14 pm Post subject: Re: jcl-sort |
 |
|
|
 |
bluebird
Specialist
Joined: 03 Feb 2004 Posts: 144
|
|
|
|
hello,
| Code: |
//sysin dd*
sort fields=(p1,l1,ch)
sum fields=none
|
p1 pos of dup
l1 length
ch sort parm for character |
|
| Back to top |
|
 |
selvakumar_ms
New User
Joined: 30 Mar 2004 Posts: 8
|
|
|
|
| bluebird wrote: |
hello,
| Code: |
//sysin dd*
sort fields=(p1,l1,ch)
sum fields=none
|
p1 pos of dup
l1 length
ch sort parm for character |
excuse me i couldn't get u |
|
| Back to top |
|
 |
anuradha
Global Moderator
Joined: 06 Jan 2004 Posts: 257
|
|
|
|
hi selvakumar_ms,
I will try to xplain you more clearly for what bluebird said:
//sysin dd*
sort fields=(p1,l1,ch)
sum fields=none
In the above sysin stmt,if we specify sum fields=none it will automatically take care of removing duplicates while sorting.
p1 in sort filelds is nothing but the position of duplicates.
l1 is length of those fields from p1.
ch is sort parameter for character.
hope atleast now you understand.
Thanks
Anu |
|
| Back to top |
|
 |
bluebird
Specialist
Joined: 03 Feb 2004 Posts: 144
|
|
|
|
| thanx anurada. Nice to see that somebody outthere reads me... |
|
| Back to top |
|
 |
|
|