The above on your data works (your dates are not Free Fromat numbers, so I changed the definitions from UFF to ZD, but it does not affect the Y4T problem).
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
As Bill has said, check if you've ICE201I H RECORD TYPE displayed in somewhere in SYSOUT - if it is not there, support for Y4T and DATEDIFF is not yet available at your shop and you should be asking your site-support to install it. They are available since Oct, 2010.
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
Kmr.deepakcs,
DFSORT V1R10 is out of service. If your shop has an extended service contract your systems programmer can install PTF UK90025 for z/OS DFSORT V1R10 which supports DATEDIFF