I tried to add number of days to date using sort JCL. But getting below error every time I try date operations this way.
SORT106E: *************************** Field formats improperly specified
Here the sample that I tried.
//STEP0100 EXEC PGM=SYNCSORT
//SYSOUT DD SYSOUT=*
//SORTIN DD *
20221003
//SORTOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=(1,8,CH,A)
OUTREC FIELDS=(1,8,9,8,Y4T,ADDDAYS,+5,TOJUL=Y4T)
//*