For the field you want to sort on (key), p is the starting position, m is the length, f is the format and a is A for ascending sequence or D for descending sequence.
If you don't know which format (f) to use, show us what the values to be sorted look like.
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:
Since your numbers are left-aligned rather than right-aligned, CH won't work. Neither will FS, contrary to what Ekta says. You need DFSORT's UFF (unsigned free form) format to sort left-aligned numbers.
For more information on DFSORT's UFF and SFF formats, see:
THIS GIVES ERROR. ANYONE ELSE CAN HELP ME FOR THIS.
That control statement works fine with DFSORT providing you have at least one blank before SORT. You need to show the //SYSOUT messages you received. Without that, I'd just be guessing at what your problem is.
The error message indicates that your site does not have DFSORT R14 PTF UQ95213 installed. You need that PTF to use UFF format. That PTF has been available since Dec, 2004 so your site is way behind in applying DFSORT service. Ask your System Programmer to install DFSORT R14 PTF UK90006 (April, 2006). That will get you all of the latest DFSORT functions.
For complete details on all of the new DFSORT and ICETOOL functions available with the Dec, 2004 PTF, see: