A1 Filename Comparision1>>>>>>>>>>>>>>>>>>>>>>> Filename
F1 E1 REF-PPL-SUFFIX-ID DI I 0321 B 5 00918470
V3 E2 INF3-REF-DSCNT-AMT DI I 0327 B 5 00918470
V1 E2 PPL-RPT-DESC-TX CH I 0343 B 5 00918470
************TABLE REORG - RECORD DELETION STARTS**********
F1 E3 C 01355937 903559239000000013000000000000000+0
************TABLE REORG - RECORD DELETION ENDS**********
************TABLE REORG - RECORD DELETION STARTS**********
F1 E3 R 01355937 903559239000000013000000000000000+0
************TABLE REORG - RECORD DELETION ENDS**********
A2 Filename Comparision1>>>>>>>>>>>>>>>>>>>>>>> Filename
V4 E2 REF-PPL-SUFFIX-ID DI I 0321 B 5 00918470
V4 E2 INF3-REF-DSCNT-AMT DI I 0327 B 5 00918470
F1 E1 PPL-RPT-DESC-TX CH I 0343 B 5 00918470
************TABLE REORG - RECORD DELETION STARTS**********
F1 E1 C 01355937 903559239000000013000000000000000+0
************TABLE REORG - RECORD DELETION ENDS**********
I want to split the record,
which exists in between
************TABLE REORG - RECORD DELETION STARTS**********
************TABLE REORG - RECORD DELETION ENDS**********
has to be moved in output file1
and the remaining record has to moved in outputfile2.
O/P file1
---------
Code:
F1 E3 C 01355937 903559239000000013000000000000000+0
F1 E3 R 01355937 903559239000000013000000000000000+0
F1 E1 C 01355937 903559239000000013000000000000000+0
O/p file-2
---------
Code:
A1 Filename Comparision1>>>>>>>>>>>>>>>>>>>>>>> Filename
F1 E1 REF-PPL-SUFFIX-ID DI I 0321 B 5 00918470
V3 E2 INF3-REF-DSCNT-AMT DI I 0327 B 5 00918470
V1 E2 PPL-RPT-DESC-TX CH I 0343 B 5 00918470
A2 Filename Comparision1>>>>>>>>>>>>>>>>>>>>>>> Filename
V4 E2 REF-PPL-SUFFIX-ID DI I 0321 B 5 00918470
V4 E2 INF3-REF-DSCNT-AMT DI I 0327 B 5 00918470
F1 E1 PPL-RPT-DESC-TX CH I 0343 B 5 00918470
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. If you don't have the April, 2006 PTF, you won't get any output. Ask your System Programmer to install the PTF (it's free). Alternatively, you could use a separate COPY operator with INREC and the SPLICE operator without INREC.
HIT=NEXT tells DFSORT to continue with the next IFTHEN clause even if this IFTHEN clause is satisfied. That way, we will also test the next IFTHEN clause for 'STAR'. Without HIT=NEXT, we wouldn't get to that next IFTHEN clause for 'STAR'.
If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from: