I could not get the desired output yet
I have taken the below record as input
<name>a</name><lname>b</lname><TRNAMT>1.8</TRNAMT>
used the card
//SYSIN DD *
INREC IFTHEN=(WHEN=INIT,
PARSE=(%01=(STARTAFT=C'<name>',ENDBEFR=C'</name>',FIXLEN=02),
%02=(STARTAFT=C'<lname>',ENDBEFR=C'</lname>',FIXLEN=05),
%03=(STARTAFT=C'<TRNAMT>',ENDBEFR=C'.',
ENDBEFR=C'</TRNAMT>',FIXLEN=10),
%04=(ENDBEFR=C'</TRNAMT>',FIXLEN=2)),
BUILD=(1,4,%01,%02,%03,JFY=(SHIFT=RIGHT),%04,UFF,EDIT=(TT))),
IFTHEN=(WHEN=INIT,OVERLAY=(12:12,10,SFF,PD,LENGTH=8))
SORT FIELDS=(5,12,CH,A)
/*
INREC IFTHEN=(WHEN=INIT,
PARSE=(%01=(STARTAFT=C'<name>',ENDBEFR=C'</name>',FIXLEN=02),
%02=(STARTAFT=C'<lname>',ENDBEFR=C'</lname>',FIXLEN=05),
%03=(STARTAFT=C'<TRNAMT>',ENDBEFR=C'.',
ENDBEFR=C'</TRNAMT>',FIXLEN=10),
%04=(ENDBEFR=C'</TRNAMT>',FIXLEN=2)),
BUILD=(1,4,%01,%02,%03,JFY=(SHIFT=RIGHT),%04,UFF,EDIT=(TT))),
IFTHEN=(WHEN=INIT,OVERLAY=(12:12,10,SFF,PD,LENGTH=8))
SORT FIELDS=(5,12,CH,A)
/*
Actual output
----+----1----+----2---
<Ca b 108
<Ca b 108
But my expected output is
----+----1----+----2---
<Ca b 180
<Ca b 180