How to sort



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

How to sort

Postby madhavmannem » Mon Dec 24, 2007 1:49 pm

how to sort by using jcl ?
madhavmannem
 
Posts: 6
Joined: Wed Dec 19, 2007 12:27 am
Has thanked: 0 time
Been thanked: 0 time

Re: How to sort

 

Re: How to sort

Postby Frank Yaeger » Mon Dec 24, 2007 9:53 pm

Here's an example of a DFSORT job that sorts the input records on positions 11-15, character, ascending:

//S1 EXEC PGM=SORT       
//SYSOUT    DD  SYSOUT=*     
//SORTIN DD DSN=...  input file                 
//SORTOUT  DD DSN=...  output file 
//SYSIN    DD    *           
  SORT FIELDS=(11,5,CH,A)     
/*


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:

http://www.ibm.com/servers/storage/supp ... tmpub.html
Frank Yaeger - DFSORT Development Team (IBM) - yaeger@us.ibm.com
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort
User avatar
Frank Yaeger
Global moderator
 
Posts: 1080
Joined: Sat Jun 09, 2007 8:44 pm
Has thanked: 0 time
Been thanked: 14 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post