I have a requirement where I need to add a text to each record of a file. Given below is the input file.
RBE221VENUS TRANSACTION LISTING FOR DAY 121 OF YEAR 2014
RBE1QC- TRANSACTION A2BA1 AT TERMINAL RBE0ZZ
RBE1QC- TRANSACTION VEHN AT TERMINAL RBE0Z1
RBE1QC- TRANSACTION VEHX AT TERMINAL DWT05P
RBE1QC- TRANSACTION MAIL AT TERMINAL NAD068
RBE1QC- TRANSACTION INVN AT TERMINAL ISM001
RBE221VENUS TRANSACTION LISTING FOR DAY 122 OF YEAR 2014
RBE1QC- TRANSACTION A2BA1 AT TERMINAL RBE0ZZ
RBE1QC- TRANSACTION VEHN AT TERMINAL RBE0Z1
RBE1QC- TRANSACTION VEHX AT TERMINAL DWT05P
RBE1QC- TRANSACTION MAIL AT TERMINAL NAD068
RBE1QC- TRANSACTION INVN AT TERMINAL ISM001
RBE1QC- TRANSACTION A2BA1 AT TERMINAL RBE0ZZ
RBE1QC- TRANSACTION VEHN AT TERMINAL RBE0Z1
RBE1QC- TRANSACTION VEHX AT TERMINAL DWT05P
RBE1QC- TRANSACTION MAIL AT TERMINAL NAD068
RBE1QC- TRANSACTION INVN AT TERMINAL ISM001
RBE221VENUS TRANSACTION LISTING FOR DAY 122 OF YEAR 2014
RBE1QC- TRANSACTION A2BA1 AT TERMINAL RBE0ZZ
RBE1QC- TRANSACTION VEHN AT TERMINAL RBE0Z1
RBE1QC- TRANSACTION VEHX AT TERMINAL DWT05P
RBE1QC- TRANSACTION MAIL AT TERMINAL NAD068
RBE1QC- TRANSACTION INVN AT TERMINAL ISM001
So, here I have to add the date at the end of each record. For Eg: The output after processing should look like:
RBE1QC- TRANSACTION A2BA1 AT TERMINAL RBE0ZZ DAY 121 OF YEAR 2014
RBE1QC- TRANSACTION VEHN AT TERMINAL RBE0Z1 DAY 121 OF YEAR 2014
RBE1QC- TRANSACTION VEHX AT TERMINAL DWT05P DAY 121 OF YEAR 2014
RBE1QC- TRANSACTION MAIL AT TERMINAL NAD068 DAY 121 OF YEAR 2014
RBE1QC- TRANSACTION INVN AT TERMINAL ISM001 DAY 121 OF YEAR 2014
RBE1QC- TRANSACTION A2BA1 AT TERMINAL RBE0ZZ DAY 122 OF YEAR 2014
RBE1QC- TRANSACTION VEHN AT TERMINAL RBE0Z1 DAY 122 OF YEAR 2014
RBE1QC- TRANSACTION VEHX AT TERMINAL DWT05P DAY 122 OF YEAR 2014
RBE1QC- TRANSACTION MAIL AT TERMINAL NAD068 DAY 122 OF YEAR 2014
RBE1QC- TRANSACTION INVN AT TERMINAL ISM001 DAY 122 OF YEAR 2014
RBE1QC- TRANSACTION VEHN AT TERMINAL RBE0Z1 DAY 121 OF YEAR 2014
RBE1QC- TRANSACTION VEHX AT TERMINAL DWT05P DAY 121 OF YEAR 2014
RBE1QC- TRANSACTION MAIL AT TERMINAL NAD068 DAY 121 OF YEAR 2014
RBE1QC- TRANSACTION INVN AT TERMINAL ISM001 DAY 121 OF YEAR 2014
RBE1QC- TRANSACTION A2BA1 AT TERMINAL RBE0ZZ DAY 122 OF YEAR 2014
RBE1QC- TRANSACTION VEHN AT TERMINAL RBE0Z1 DAY 122 OF YEAR 2014
RBE1QC- TRANSACTION VEHX AT TERMINAL DWT05P DAY 122 OF YEAR 2014
RBE1QC- TRANSACTION MAIL AT TERMINAL NAD068 DAY 122 OF YEAR 2014
RBE1QC- TRANSACTION INVN AT TERMINAL ISM001 DAY 122 OF YEAR 2014
Can someone please assist me on how I can add the date at the end of each record. Any suggestions/help will be really helpful !
Thanks,
Viswa..