Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
jcl-sort

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
Author Message
selvakumar_ms

New User


Joined: 30 Mar 2004
Posts: 8

PostPosted: Sat Apr 10, 2004 6:14 pm    Post subject: jcl-sort
Reply with quote

hi,
is there any chance to remove duplicates in jcl sort?
Back to top
View user's profile Send private message
References
bluebird

Specialist


Joined: 03 Feb 2004
Posts: 144

PostPosted: Sat Apr 10, 2004 7:20 pm    Post subject:
Reply with quote

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
View user's profile Send private message
selvakumar_ms

New User


Joined: 30 Mar 2004
Posts: 8

PostPosted: Mon Apr 12, 2004 2:43 pm    Post subject:
Reply with quote

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
View user's profile Send private message
anuradha

Global Moderator


Joined: 06 Jan 2004
Posts: 257

PostPosted: Tue Apr 13, 2004 6:19 pm    Post subject: To remove duplicates
Reply with quote

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
View user's profile Send private message
bluebird

Specialist


Joined: 03 Feb 2004
Posts: 144

PostPosted: Wed Apr 14, 2004 12:30 pm    Post subject:
Reply with quote

thanx anurada. Nice to see that somebody outthere reads me...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1