Frank Yaeger wrote:raghuvanshi,
If that's not working for you, then there's something you're not telling us. When I run this job with DFSORT://S1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD *
31-01-2011
25-05-2012
//SORTOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=COPY
OUTREC FIELDS=(4,2,C'/',1,2,C'/',7,4)
/*
I get this output which is what you seem to be expecting:01/31/2011
05/25/2012
.
When I am coding this jcl I am getting AbendU0016 and following are the details-: