I have the next problem.
I have a file with records with a key and a date and a amount. I need to repeat all the records in the input by date to date to the next record.
Example, records IN.
KEY DATE AMOUNT
--- -------- ------
AAA 20130101 001000
AAA 20130103 001500
AAA 20130107 001200
--- -------- ------
AAA 20130101 001000
AAA 20130103 001500
AAA 20130107 001200
I need to generate the records between record 1 and record 2, between record 2 and 3 ... :
KEY DATE AMOUNT
--- -------- ------
AAA 20130101 001000
AAA 20130102 001000
AAA 20130103 001500
AAA 20130104 001500
AAA 20130105 001500
AAA 20130106 001500
AAA 20130107 001200
--- -------- ------
AAA 20130101 001000
AAA 20130102 001000
AAA 20130103 001500
AAA 20130104 001500
AAA 20130105 001500
AAA 20130106 001500
AAA 20130107 001200
Thanks.
Code'd
and aligned!