Hope I posting in the right section of the forum.
I have multiple type of records in a input file. Each of them is identified by a id in position 5.
I have to add 30 spaces to only a particular type of record , while keeping the rest of the records as they are.
e.g.
Input
----+----1----+----2----+----3----+----4----+----5----+-
aaaa10aaaaaaaaaaaaaaaaaaaaa NJaaaaaaaaaaaaaaaaaaa
aaaa20aaaaaaaaaaaaaaaaaaaaa residenceaaaaaaaaaaaa
bbbb10bbbbbbbbbbbbbbbbbbbbb PAbbbbbbbbbbbbbbbbbbb
bbbb15bbbbbbbbbbbbbbbbbbbbb scranton bbbbbbbbb
bbbd20bbbbbbbbbbbbbbbbbbbbb residencebbbbbbbbbbbb
cccc10ccccccccccccccccccccc PHccccccccccccccccccc
cccc20ccccccccccccccccccccc columbus ccccccccc
cccc20ccccccccccccccccccccc residencecccccccccccc
dddd10ddddddddddddddddddddd WVddddddddddddddddddd
dddd20ddddddddddddddddddddd residenced1f1d1dddddd
aaaa10aaaaaaaaaaaaaaaaaaaaa NJaaaaaaaaaaaaaaaaaaa
aaaa20aaaaaaaaaaaaaaaaaaaaa residenceaaaaaaaaaaaa
bbbb10bbbbbbbbbbbbbbbbbbbbb PAbbbbbbbbbbbbbbbbbbb
bbbb15bbbbbbbbbbbbbbbbbbbbb scranton bbbbbbbbb
bbbd20bbbbbbbbbbbbbbbbbbbbb residencebbbbbbbbbbbb
cccc10ccccccccccccccccccccc PHccccccccccccccccccc
cccc20ccccccccccccccccccccc columbus ccccccccc
cccc20ccccccccccccccccccccc residencecccccccccccc
dddd10ddddddddddddddddddddd WVddddddddddddddddddd
dddd20ddddddddddddddddddddd residenced1f1d1dddddd
O/P
----+----1----+----2----+----3----+----4----+----5----+-
aaaa10aaaaaaaaaaaaaaaaaaaaa NJaaaaaaaaaaaaaaaaaaa
aaaa20aaaaaaaaaaaaaaaaaaaaa residenceaaaaaaaaaaaa
bbbb10bbbbbbbbbbbbbbbbbbbbb PAbbbbbbbbbbbbbbbbbbb
bbbb15bbbbbbbbbbbbbbbbbbbbb scranton bbbbbbbbb
bbbd20bbbbbbbbbbbbbbbbbbbbb residencebbbbbbbbbbbb
cccc10ccccccccccccccccccccc PHccccccccccccccccccc
cccc20ccccccccccccccccccccc columbus ccccccccc
cccc20ccccccccccccccccccccc residencecccccccccccc
dddd10ddddddddddddddddddddd WVddddddddddddddddddd
dddd20ddddddddddddddddddddd residenced1f1d1dddddd
aaaa10aaaaaaaaaaaaaaaaaaaaa NJaaaaaaaaaaaaaaaaaaa
aaaa20aaaaaaaaaaaaaaaaaaaaa residenceaaaaaaaaaaaa
bbbb10bbbbbbbbbbbbbbbbbbbbb PAbbbbbbbbbbbbbbbbbbb
bbbb15bbbbbbbbbbbbbbbbbbbbb scranton bbbbbbbbb
bbbd20bbbbbbbbbbbbbbbbbbbbb residencebbbbbbbbbbbb
cccc10ccccccccccccccccccccc PHccccccccccccccccccc
cccc20ccccccccccccccccccccc columbus ccccccccc
cccc20ccccccccccccccccccccc residencecccccccccccc
dddd10ddddddddddddddddddddd WVddddddddddddddddddd
dddd20ddddddddddddddddddddd residenced1f1d1dddddd
As seen above when record 15 is found I need to put spaces after that city. the position of that space is fixed say position 40.
Can this be achieved by any tool not via any COBOL/EZTRV code.
Thanks in advance.