S
Steve
Hope some one can help, first need to paste the following
text into a text file, upto the dotted line -
Original two lines below
Name
cc a/c
sub
DR CR
bla
bla1
bla2
GECC LLAS INTERFACE 31-MAR-20049XXX01
6010 010100001
2999
90721722
90721722C0000000000000003103Susp
Rfnd/ 000000000
GECC LLAS INTERFACE 31-MAR-20049XXX01
6010 010100001
2999
334830
334830C0002047360000001612Gross
Paym 31IN77 000000000
THis is what i would need additionally produced in a
seperate text file
GECC LLAS INTERFACE 31-MAR-20049J3501
6010 010100001
2999
90721722
90721722C0000000000000003103Susp
Rfnd/ 000000000
GECC LLAS INTERFACE 31-MAR-20049J3501
6010 010100001
2999
334830
334830C0002047360000001612Gross
Paym 31IN77 000000000
GECC LLAS INTERFACE 31-MAR-20049XXX01
6010 010100001
2999
334830
334830D0002047360000001612Gross
Paym 31IN77 000000000
GECC LLAS INTERFACE 31-MAR-20049XXX01
6010 010100001
2999
90721722
90721722D0000000000000003103Susp
Rfnd/ 000000000
------------------------------------------------------
If you view the text above within a text file you will see
Original data made up of two lines. I have put some
headers in to try and make it a little easier. These
headers will not be there though when i have to run the
coding.
The two lines in 'original two lines below' represent 2
credit entries. (look right accross the page) these are
identified by a C in the text in the 'bla' column. If they
were debits there would be a D in the code within
the 'bla' column.
Firstly, in any row where there is an occurance of all
three of the following in the original 'two lines below
data'-
Name - 9XXX01
a/c - 010100001
sub - 2999
I would need to create two extra lines of data. These
lines will need to be dumped into a seperate text file.
The first line of the two lines needed to be dumped will
be identical to the line where there are these three
occurances except for the following - text being replaced
within the Name
GECC LLAS INTERFACE 31-MAR-20049XXX01 replaced with GECC
LLAS INTERFACE 31-MAR-20049J3501
That is all for the first line. easy?
The second line a little more difficult -
It needs to be identical to the original line changing
only the following fields -
Dr - if anything in here on the original line put the
amount into Cr on new line
Cr - if anything in here on the original line put the
amount into Dr on new line
Also with the data in column 'bla' if there is an
occurance of C or D in the code - ie:
90721722C0000000000000003103Susp Rfnd/
This will have to be replaced. The C with D or if D with C.
This is going to be a reversing entry
Ideally if we do above for the two 'original two lines
below entry' it will create the four entries shown 'This
is what i would need additionaly produced in a seperate
text file''
I hope this makes sense and you can help me
text into a text file, upto the dotted line -
Original two lines below
Name
cc a/c
sub
DR CR
bla
bla1
bla2
GECC LLAS INTERFACE 31-MAR-20049XXX01
6010 010100001
2999
90721722
90721722C0000000000000003103Susp
Rfnd/ 000000000
GECC LLAS INTERFACE 31-MAR-20049XXX01
6010 010100001
2999
334830
334830C0002047360000001612Gross
Paym 31IN77 000000000
THis is what i would need additionally produced in a
seperate text file
GECC LLAS INTERFACE 31-MAR-20049J3501
6010 010100001
2999
90721722
90721722C0000000000000003103Susp
Rfnd/ 000000000
GECC LLAS INTERFACE 31-MAR-20049J3501
6010 010100001
2999
334830
334830C0002047360000001612Gross
Paym 31IN77 000000000
GECC LLAS INTERFACE 31-MAR-20049XXX01
6010 010100001
2999
334830
334830D0002047360000001612Gross
Paym 31IN77 000000000
GECC LLAS INTERFACE 31-MAR-20049XXX01
6010 010100001
2999
90721722
90721722D0000000000000003103Susp
Rfnd/ 000000000
------------------------------------------------------
If you view the text above within a text file you will see
Original data made up of two lines. I have put some
headers in to try and make it a little easier. These
headers will not be there though when i have to run the
coding.
The two lines in 'original two lines below' represent 2
credit entries. (look right accross the page) these are
identified by a C in the text in the 'bla' column. If they
were debits there would be a D in the code within
the 'bla' column.
Firstly, in any row where there is an occurance of all
three of the following in the original 'two lines below
data'-
Name - 9XXX01
a/c - 010100001
sub - 2999
I would need to create two extra lines of data. These
lines will need to be dumped into a seperate text file.
The first line of the two lines needed to be dumped will
be identical to the line where there are these three
occurances except for the following - text being replaced
within the Name
GECC LLAS INTERFACE 31-MAR-20049XXX01 replaced with GECC
LLAS INTERFACE 31-MAR-20049J3501
That is all for the first line. easy?
The second line a little more difficult -
It needs to be identical to the original line changing
only the following fields -
Dr - if anything in here on the original line put the
amount into Cr on new line
Cr - if anything in here on the original line put the
amount into Dr on new line
Also with the data in column 'bla' if there is an
occurance of C or D in the code - ie:
90721722C0000000000000003103Susp Rfnd/
This will have to be replaced. The C with D or if D with C.
This is going to be a reversing entry
Ideally if we do above for the two 'original two lines
below entry' it will create the four entries shown 'This
is what i would need additionaly produced in a seperate
text file''
I hope this makes sense and you can help me