I have to convert month-day-year format to year-month-day format.
Code which i tried :
OPTION COPY
OUTREC PARSE=(%01=(ENDBEFR=C',',FIXLEN=5),
%02=(ENDBEFR=C',',FIXLEN=3),
%03=(ENDBEFR=C',',FIXLEN=18),
%04=(ENDBEFR=C',',FIXLEN=9),
%05=(FIXLEN=23)),
BUILD=(%01,9:%02,15:%03,35:%04,Y4Y,TOGREG=(Y4T(-)),47:%05)
OUTREC PARSE=(%01=(ENDBEFR=C',',FIXLEN=5),
%02=(ENDBEFR=C',',FIXLEN=3),
%03=(ENDBEFR=C',',FIXLEN=18),
%04=(ENDBEFR=C',',FIXLEN=9),
%05=(FIXLEN=23)),
BUILD=(%01,9:%02,15:%03,35:%04,Y4Y,TOGREG=(Y4T(-)),47:%05)
Error message :
WER268A OUTREC STATEMENT : SYNTAX ERROR
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000
WER449I SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000
WER449I SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE
Without date conversion field code is working fine.
Kindly help me in this requirement
Thanks,
Lekha