In the output I am supposed to get only those records having their first byte '2'.
But what is happening is I am getting all the records in the input file in output file also. And those records having the first byte '2' is getting reformatted as mentioned. Do anyone know why I am getting all tyhe records in the output file????
Also, eventhough the sort criteria is mentioned its not getting sorted. I need the file to get sorted after the desired reformatting is done.
You copied this from the DFSORT Tricks site? I don't think so! Please tell me the URL of the page you found this on because it couldn't possibly have looked like that given that it wouldn't work because of syntax errors, and I test all of the DFSORT Tricks examples to make sure they work before I post them.
First of all you have the TOOLIN and CTL1CNTL DD statements in the wrong place. The way you have it, TOOLIN has no control statements, CTL1CNTL has the ICETOOL SORT operator instead of the DFSORT control statements, and the DFSORT control statements are ignored since they aren't associated with any DD statement. It's actually quite a mess! You're also missing the format from the SORT statement.
Cleaning this up, the correct syntax would be something like this:
Can IFTHEN and BUILD functions be used for ICEMAN.
ICEMAN is just the name used to invoked the sort product installed at your site.
You'll need z/OS DFSORT V1R5 PTF UQ95214 or DFSORT R14 PTF UQ95213 (Dec, 2004) in order to use DFSORT's IFTHEN, BUILD and OVERLAY functions. Only DFSORT has these functions, so if you don't have DFSORT, you won't be able to use them. If you do have DFSORT, but you don't have the Dec, 2004 PTF, ask your System Programmer to install it (it's free). For complete details on all of the new DFSORT and ICETOOL functions available with the Dec, 2004 PTF, see: