I am struggling with a date conversion in SORT. I have to get a date from a file where first two chars is C'01' and the next five the Julian Date. And output a record of length 80 with
NARRATIVE11ddmmyyyy
I am using:
SORT FIELDS=COPY
INCLUDE FORMAT=CH,COND=(2,2,CH,EQ,C'01')
OUTFIL BUILD=(C'NARRATIVE11',10,5,Y2T,DT=(DM4),81X)
SUM FIELDS=NONE
INCLUDE FORMAT=CH,COND=(2,2,CH,EQ,C'01')
OUTFIL BUILD=(C'NARRATIVE11',10,5,Y2T,DT=(DM4),81X)
SUM FIELDS=NONE
But always get ABENDU0007 with SYNTAX ERROR At:
OUTFIL BUILD=(C'NARRATIVE11',10,5,Y2T,DT=(DM4),81X)
£
£
Any hints ? Thank you, GG