Author: ABINAYATHULASI
Subject: Need help in reading and validating a multiline file
Posted: Tue Apr 18, 2017 11:42 am (GMT 5.5)
I have a file with a single record spanning across multiple lines.There are many such records in that file.
EG: Note :the single record spans from H1 TO S1. it may be even 15000 lines in a single record .
H1.......
H2........
H3......
D1......
D2.......
DN ST .........
DN BZ.........
DH.......
D1....
D2.....
S1........
I want to validate if DNST line(highlighted) alone matches with wat i pass in control card .If matches i have to write the entire block to output file if it doesnt match then ignore them.
_________________
Abinaya
Subject: Need help in reading and validating a multiline file
Posted: Tue Apr 18, 2017 11:42 am (GMT 5.5)
I have a file with a single record spanning across multiple lines.There are many such records in that file.
EG: Note :the single record spans from H1 TO S1. it may be even 15000 lines in a single record .
H1.......
H2........
H3......
D1......
D2.......
DN ST .........
DN BZ.........
DH.......
D1....
D2.....
S1........
I want to validate if DNST line(highlighted) alone matches with wat i pass in control card .If matches i have to write the entire block to output file if it doesnt match then ignore them.
_________________
Abinaya