I have an input dataset of DCB VB/260 and it contains the below information :
00:04:18.59 S0077774 00000211 GSVC100W (TPPT) TRANEND TRANS ABENDS AW45 ASRA NO
572 00000211 V= 1 W= 1 P= 1 UPPER 0.000000
572 00000211 BCCICSPE AW45 87927 * ZMQKMD
572 00000211 Desc='Transaction abends '
12:50:10.64 S0074087 00000000 +GSVC201E (Task) Tran=E3A5 Task= 6463 Code=????
Resource=*
12:50:10.64 S0074098 00000000 +GSVC201E (Task) Tran=E3A5 Task= 34137 Code=????
Resource=*
12:50:10.64 S0074087 00000010 GSVC100W (TPPT) TRANEND TRANS ABENDS E3A5 ???? N
485 00000010 V= 1 W= 1 P= 1 UPPER 0.000000
485 00000010 OCCICSPU E3A5 6463 * ZWWEB01
485 00000010 Desc='Transaction abends '
572 00000211 V= 1 W= 1 P= 1 UPPER 0.000000
572 00000211 BCCICSPE AW45 87927 * ZMQKMD
572 00000211 Desc='Transaction abends '
12:50:10.64 S0074087 00000000 +GSVC201E (Task) Tran=E3A5 Task= 6463 Code=????
Resource=*
12:50:10.64 S0074098 00000000 +GSVC201E (Task) Tran=E3A5 Task= 34137 Code=????
Resource=*
12:50:10.64 S0074087 00000010 GSVC100W (TPPT) TRANEND TRANS ABENDS E3A5 ???? N
485 00000010 V= 1 W= 1 P= 1 UPPER 0.000000
485 00000010 OCCICSPU E3A5 6463 * ZWWEB01
485 00000010 Desc='Transaction abends '
1. The starting position of the above record in VB input is 27(I mean the value 00:04:18.59 starts from position 27)
2. Input is a huge file and apart from the above information it has many other informations
My Requirement :
1. I want help in writing a Icetool control card.
2. It has to read the entire input and find the records with the keyword GSVC(GSVC is in position 57 of my VB input) and should place it in output along with the next three lines
My Required output :
00:04:18.59 S0077774 00000211 GSVC100W (TPPT) TRANEND TRANS ABENDS AW45 ASRA NONE PROBLEM 572
572 00000211 V= 1 W= 1 P= 1 UPPER 0.000000
572 00000211 BCCICSPE AW45 87927 * ZMQKMD
572 00000211 Desc='Transaction abends '
12:50:10.64 S0074087 00000010 GSVC100W (TPPT) TRANEND TRANS ABENDS E3A5 ???? N
485 00000010 V= 1 W= 1 P= 1 UPPER 0.000000
485 00000010 OCCICSPU E3A5 6463 * ZWWEB01
485 00000010 Desc='Transaction abends '
572 00000211 V= 1 W= 1 P= 1 UPPER 0.000000
572 00000211 BCCICSPE AW45 87927 * ZMQKMD
572 00000211 Desc='Transaction abends '
12:50:10.64 S0074087 00000010 GSVC100W (TPPT) TRANEND TRANS ABENDS E3A5 ???? N
485 00000010 V= 1 W= 1 P= 1 UPPER 0.000000
485 00000010 OCCICSPU E3A5 6463 * ZWWEB01
485 00000010 Desc='Transaction abends '
With the below control card I am able to fetch the records, but I want the next three lines of the same record to be placed in output
My Copy Statement : COPY FROM(IN) TO(OUT) USING(GSVC)
My Controlcard :
OPTION VLSCMP
INCLUDE COND=(62,4,SS,EQ,C'GSVC')
OUTFIL VTOF,BUILD=(31,100,255:X)
My output file is of FB/255. Can somebody help me in this regard.
Thanks N Regards
Samvith