Date Population
Posted: Tue Oct 05, 2010 9:33 am
Hi All,
Good Day..,
I have the following requirement.
From the source I would get only the START DATE and I need to populate END DATE in the Output file.
Greatly apprciated if anyone has solution.
INPUT DATA
----------
ID NBR SEQNO START DATE
7856 01 20100905 10:12:45
7856 01 20100905 10:16:14
7856 01 20100905 10:32:26
Scenario:
---------
1) If my source have only one record then my end date in the output is current time stamp.
2) If my source have more than one record, say it has 3 records. Then the END DATE for the first record is the
START DATE of the second record and the END DATE of the second record is START DATE of the third record and the
END DATE for the 3 record is CurrentTimeStamp(). The below is how the OUTPUT data looks like.
OUTPUT DATA
-----------
ID NBR SEQNO START DATE END DATE
7856 01 20100905 10:12:45 20100905 10:16:14
7856 01 20100905 10:16:14 20100905 10:32:26
7856 01 20100905 10:32:26 CurrentTimeStamp()
MANY THANKS
~~~Cherry
Good Day..,
I have the following requirement.
From the source I would get only the START DATE and I need to populate END DATE in the Output file.
Greatly apprciated if anyone has solution.
INPUT DATA
----------
ID NBR SEQNO START DATE
7856 01 20100905 10:12:45
7856 01 20100905 10:16:14
7856 01 20100905 10:32:26
Scenario:
---------
1) If my source have only one record then my end date in the output is current time stamp.
2) If my source have more than one record, say it has 3 records. Then the END DATE for the first record is the
START DATE of the second record and the END DATE of the second record is START DATE of the third record and the
END DATE for the 3 record is CurrentTimeStamp(). The below is how the OUTPUT data looks like.
OUTPUT DATA
-----------
ID NBR SEQNO START DATE END DATE
7856 01 20100905 10:12:45 20100905 10:16:14
7856 01 20100905 10:16:14 20100905 10:32:26
7856 01 20100905 10:32:26 CurrentTimeStamp()
MANY THANKS
~~~Cherry