Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Here's a DFSORT/ICETOOL job that will do what you asked for. You'll need z/OS DFSORT V1R5 PTF UK90007 or DFSORT R14 PTF UK90006 (April, 2006) in order to use INREC with SPLICE. You won't get the correct results without the April, 2006 PTF. If you don't have the April, 2006 PTF, ask your System Programmer to install it (it's free). For complete details on all of the new DFSORT and ICETOOL functions available with the April, 2006 PTF, see:
Use [URL] BBCode for External Links
Code: |
//S1 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN DD DSN=... input file (FB/22)
//OUT DD DSN=... output file (FB/46)
//TOOLIN DD *
SPLICE FROM(IN) TO(OUT) ON(1,10,CH) -
WITHEACH WITH(24,11) WITH(36,11) USING(CTL1)
/*
//CTL1CNTL DD *
INREC IFTHEN=(WHEN=INIT,
OVERLAY=(47:SEQNUM,8,ZD,RESTART=(1,10))),
IFTHEN=(WHEN=(47,8,ZD,EQ,+2),
BUILD=(1,10,24:12,11)),
IFTHEN=(WHEN=(47,8,ZD,EQ,+3),
BUILD=(1,10,36:12,11))
OUTFIL FNAMES=OUT,BUILD=(1,46)
/*
|
|
|