//S1 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN1 DD DSN=... sequential input file (FB/25)
//IN2 DD DSN=... VSAM file
//T2 DD DSN=&&T1,UNIT=SYSDA,SPACE=(CYL,(5,5)),DISP=(,PASS)
//OUT DD DSN=... VSAM file
//TOOLIN DD *
COPY FROM(IN2) TO(T2) VSAMTYPE(F)
MERGE FROM(IN1,T2) TO(OUT) USING(CTL1)
/*
//CTL1CNTL DD *
OPTION EQUALS,ZDPRINT
MERGE FIELDS=(1,10,BI,A)
SUM FIELDS=(11,15,ZD)
/*
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN1 DD DSN=... sequential input file (FB/25)
//IN2 DD DSN=... VSAM file
//T2 DD DSN=&&T1,UNIT=SYSDA,SPACE=(CYL,(5,5)),DISP=(,PASS)
//OUT DD DSN=... VSAM file
//TOOLIN DD *
COPY FROM(IN2) TO(T2) VSAMTYPE(F)
MERGE FROM(IN1,T2) TO(OUT) USING(CTL1)
/*
//CTL1CNTL DD *
OPTION EQUALS,ZDPRINT
MERGE FIELDS=(1,10,BI,A)
SUM FIELDS=(11,15,ZD)
/*