is it possible to use a symbolic name in an include?
So far, my attempts are failing.
I am using symbolic names because most fields are variable length.
I want to compare only the first bytes of the field.
here is my code.
this is in symnames
CKEY,1,8
FLD2,%00
FLD3,%01
FLD4,%02
PIPE,'|'
BLNK,' '
and this is the actual code
SYSIN :
* SORT FIELDS=COPY
INREC PARSE=(FLD2=(ABSPOS=10,FIXLEN=8,ENDBEFR=BLNK),
FLD3=(FIXLEN=13,ENDBEFR=BLNK),
FLD4=(FIXLEN=11,ENDBEFR=BLNK)),
BUILD=(CKEY,PIPE,FLD2,PIPE,FLD3,PIPE,FLD4,PIPE)
SORT FIELDS=COPY
INCLUDE COND=(FLD3,04,CH,EQ,C'RACF')
DATA DICTIONARY SYMBOLS SUBSTITUTED :
INREC PARSE=(%00=(ABSPOS=10,FIXLEN=8,ENDBEFR=C' '),%01=(FIXLEN=13,ENDBEFR=C' '),
%02=(FIXLEN=11,ENDBEFR=C' ')),BUILD=(1,8,C'|',%00,C'|',%01,C'|',%02,C'|')
SORT FIELDS=COPY
INCLUDE COND=(%01,04,CH,EQ,C'RACF')
*
WER268A INCLUDE STATEMENT : SYNTAX ERROR
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000
* SORT FIELDS=COPY
INREC PARSE=(FLD2=(ABSPOS=10,FIXLEN=8,ENDBEFR=BLNK),
FLD3=(FIXLEN=13,ENDBEFR=BLNK),
FLD4=(FIXLEN=11,ENDBEFR=BLNK)),
BUILD=(CKEY,PIPE,FLD2,PIPE,FLD3,PIPE,FLD4,PIPE)
SORT FIELDS=COPY
INCLUDE COND=(FLD3,04,CH,EQ,C'RACF')
DATA DICTIONARY SYMBOLS SUBSTITUTED :
INREC PARSE=(%00=(ABSPOS=10,FIXLEN=8,ENDBEFR=C' '),%01=(FIXLEN=13,ENDBEFR=C' '),
%02=(FIXLEN=11,ENDBEFR=C' ')),BUILD=(1,8,C'|',%00,C'|',%01,C'|',%02,C'|')
SORT FIELDS=COPY
INCLUDE COND=(%01,04,CH,EQ,C'RACF')
*
WER268A INCLUDE STATEMENT : SYNTAX ERROR
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000
how can I fix this?
Thanks