when i use
OVERLAY=(1,2,(3,4,ZD,SUB,+1,LENGTH=4),7,2)
i get the following error
SYSIN :
OPTION COPY
INREC IFTHEN=(WHEN=(1,1,CH,EQ,C'x'),
OVERLAY=(1:C'1',X,(3,4,ZD,SUB,+1,LENGTH=4),7,2)
*
OUTFILE REMOVECC
WER268A INREC STATEMENT : SYNTAX ERROR
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000
Without Parenthesis, The job runs fine, but it doesnt give the required output:
OVERLAY=(1,2,3,4,ZD,SUB,+1,LENGTH=4,7,2)
the output is