Her is the input hex on :
----+----1----+----2----+----3----+----4
} 783091
00D10100FFFFFF44444444444444444444444444
0100000178309100000000000000000000000000
----------------------------------------
} ) É" È testR420AL300110Y j Y
00D20513770173A8AADFFFCDFFFFFFE00009000E
010E3D101F144F352394201330011080000100F8
----------------------------------------
} 126061
00D10100FFFFFF44444444444444444444444444
0100000112606100000000000000000000000000
----------------------------------------
} ) É" È testR420AL300110Y j Y
00D20513770173A8AADFFFCDFFFFFFE00009000E
010E3D101F144F352394201330011080000100F8
----------------------------------------
} 881309
00D10100FFFFFF44444444444444444444444444
----------------------------------------
Here is to job :
//SIDEV01I JOB (0000,0000,0000),'ICETOOL TEST',
// NOTIFY=SIDEV01,MSGCLASS=Q,MSGLEVEL=(1,1),CLASS=X
/*JOBPARM M=4096,T=199,L=99,R=CDT
//*
//STEP1 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN DD DSN=FILEIN.SMALL,DISP=SHR
//OUT DD DSN=FILEOUT.....,DISP=SHR
//*
//TOOLIN DD *
COPY FROM(IN) TO(OUT) USING(CTL1)
//CTL1CNTL DD *
INREC IFTHEN=(WHEN=INIT,
BUILD=(1,4,X,5)),
IFTHEN=(WHEN=GROUP,BEGIN=(5,4,BI,EQ,X'0001D010',
AND,13,10,CH,EQ,C'126061'),
RECORDS=2,
PUSH=(5:2,1))
OUTFIL OMIT=(5,1,CH,EQ,C' '),
BUILD=(1,5,6)
The result should be like :
----------------------------------------
} 126061
00D10100FFFFFF44444444444444444444444444
0100000112606100000000000000000000000000
----------------------------------------
} ) É" È testR420AL300110Y j Y
00D20513770173A8AADFFFCDFFFFFFE00009000E
010E3D101F144F352394201330011080000100F8
----------------------------------------
Coded