Every day there are five text files saved to a directory
(these are AS/400 spooled files)
STMT.TXT
JOURNAL.TXT
MESSAGE.TXT
GL0240.TXT
REPORT.TXT
In all the files each record is separated by a line of "----" looks thus, in all cases the "------" are of equal length.
STMT.TXT
REFERENCE STMT STM5040
ASSETS AND LIABILITIES
1050 CASH
CHASE 101010 USD 25000 DR 300000 CR
---------------------------------------------------
1060 INVESTMENTS
.....
---------------------------------------------------
Is is possible to loop thru each text file do a search
and replace the line that contains the "---------"
with a single character say "&" or "@" or "%"
So the above example would look thus:
REFERENCE STMT STM5040
ASSETS AND LIABILITIES
1050 CASH
CHASE 101010 USD 25000 DR 300000 CR
&
1060 INVESTMENTS
.....
&
(these are AS/400 spooled files)
STMT.TXT
JOURNAL.TXT
MESSAGE.TXT
GL0240.TXT
REPORT.TXT
In all the files each record is separated by a line of "----" looks thus, in all cases the "------" are of equal length.
STMT.TXT
REFERENCE STMT STM5040
ASSETS AND LIABILITIES
1050 CASH
CHASE 101010 USD 25000 DR 300000 CR
---------------------------------------------------
1060 INVESTMENTS
.....
---------------------------------------------------
Is is possible to loop thru each text file do a search
and replace the line that contains the "---------"
with a single character say "&" or "@" or "%"
So the above example would look thus:
REFERENCE STMT STM5040
ASSETS AND LIABILITIES
1050 CASH
CHASE 101010 USD 25000 DR 300000 CR
&
1060 INVESTMENTS
.....
&