I have one COBOL output in which two headers and multiple records are there . Now whenever i use DFsort in jcl, then whole records and header gets sorted.
You can use the DATASORT operator of DFSORT's ICETOOL to sort the detail records while keeping the header and trailer record in place.
Another problem is whenever i use DFSort , all columns get sorted .can we sort particular column, i mean sorting only 4 columns out of 5 columns.
DFSORT sorts whatever YOU tell it to on the SORT statement YOU supply. If you want it to sort on specific columns, just specify those columns in the SORT statement.
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/support/docview.wss? ... g3T7000080