1) I'm getting below error. I think it is for '?'.
SYSIN :
JOINKEYS FILES=F1,FIELDS=(23,15,A)
JOINKEYS FILES=F2,FIELDS=(20,15,A)
JOIN UNPAIRED,F1
REFORMAT FIELDS=(F1:1,80,?,F2:50,6)
*
OPTION COPY
OUTFIL IFOUTLEN=80,
IFTHEN=(WHEN=(81,1,CH,EQ,C'B'),OVERLAY=(39:82,6))
WER268A REFORMAT STATEMENT: SYNTAX ERROR
2) If i dont use '?' then i get below abend:
JOINKEYS REFORMAT RECORD LENGTH= 86, TYPE = F
SORTOUT OUTREC FIELD OUTSIDE RANGE
SYNCSMF CALLED BY SYNCSORT; RC=0000