I am running below SORT with ICETOOL to overlap a three byte field in file1 with four byte field from file2 but with truncation.
//TOOLMSG DD SYSOUT=*
//SSMSG DD SYSOUT=*
//IN1 DD *
//IN2 DD *
//TE1 DD DSN=&&TE1,DISP=(MOD,PASS,DELETE),SPACE=(TRK,(1,1),RLSE)
//OT1 DD SYSOUT=*
//TOOLIN DD *
COPY FROM(IN1) TO(TE1) USING(GAB1)
COPY FROM(IN2) TO(TE1) USING(GAB2)
SPLICE FROM(TE1) TO(OT1) ON(1,3,ZD) WITH(1,7)
//GAB1CNTL DD *
//GAB2CNTL DD *
With above job the output appears as shown below:
I expected the output to be as shown below:
Is it possible to achieve it as I expected? What alterations I need to make to my SORT?