IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Sort both the variables in ascending order and remove Dups


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
uma rao
Currently Banned

New User


Joined: 20 Oct 2007
Posts: 8
Location: delhi

PostPosted: Tue Oct 30, 2007 12:55 pm
Reply with quote

please clarify it

We have an Input File having Branch Numbers & Account Numbers. We want to sort it on both the variables in ascending order and remove the duplicates also. How to achieve this through JCL?
Back to top
View user's profile Send private message
ashwinreddy

Active User


Joined: 16 Sep 2004
Posts: 106
Location: Hyderabad

PostPosted: Tue Oct 30, 2007 1:00 pm
Reply with quote

Hi,

SORT FIELDS=(2,10,CH,A,10,20,CH,A)
SUM FIELDS=NONE

This would sort as well as Eliminates the duplicates.

Cheers
Ashwin
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Rotate partition-logical & physic... DB2 0
Search our Forums:

Back to Top