Posted: Sat Oct 06, 2007 4:09 am Post subject: Need Help in Sort JCL
The following is my requirement:
i need to sort the input file based on two fields such as SSN(social security number) in ascending order and the Timestamp on descending order. please help in this regard.
so, if ssn is in position 11 and timestamp is in position 87:
SORT FIELDS=(11,9,CH,A,87,14,CH,D)
a better title would have been: syntax for SORT FIELDS.
no one will beable to search the forum and find your post as an example of SORT FIELDS syntax. _________________ Dick Brenholtz
American living in Varel, Germany
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Sat Oct 06, 2007 1:53 pm Post subject:
waves,
This is pretty basic stuff. If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum