Page 1 of 1

Need Help in finding the date difference.

PostPosted: Mon Nov 05, 2012 10:02 am
by gokulNmf
Hi,
i am trying to find the difference between 2 dates.Please find below the JCl step.
//SORT1 EXEC PGM=SORT,PARM='CENTWIN=80'               
//SORTIN  DD *                                         
120401120101                                           
121101120101                                           
//SORTOUT DD SYSOUT=*                                 
//SYSOUT  DD SYSOUT=*                                 
//SYSIN   DD *                                         
  OUTREC FIELDS=(1,6,Y2T,DATEDIFF,7,6,Y2T)             
  SORT FIELDS=COPY                 


And i getting abend, below is the error message.
with this statement I think the
SYNCSORT FOR Z/OS 1.4.0.1N
its MFX1.4 version. So this should support the datediff function.

SYNCSORT FOR Z/OS  1.4.0.1N    U.S. PATENTS: 4210961, 5117495   (C) 2010 SYNCS
                                                      z/OS   1.13.0           
SYNCSORT LICENSED FOR CPU SERIAL NUMBER 10EAD, MODEL 2817 406             LICE
SYSIN :                                                                       
  OUTREC FIELDS=(1,6,Y2T,DATEDIFF,7,6,Y2T)                                   
                         *                                                   
  SORT FIELDS=COPY                                                           
WER268A  OUTREC STATEMENT  : SYNTAX ERROR                                     
WER211B  SYNCSMF  CALLED BY SYNCSORT; RC=0000                                 


Can anyone help me on this.
TIA,

Re: Need Help in finding the date difference.

PostPosted: Mon Nov 05, 2012 1:09 pm
by BillyBoyo

Re: Need Help in finding the date difference.

PostPosted: Mon Nov 05, 2012 1:47 pm
by gokulNmf
Thanks Billy!!