Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to retrieve historical data using some transformation rules in Talend-DI

Here i'm given a task to take the data from the AS400(DB2-DB) which has all the data since ages and, do TRANSFORMATION'S using some transformation rules:

1) keep 30 days old data from the current date
2) delete the data older than 30 days .
3) keep the data of the 1st days of every month untill the previous 2 years.
4) Delete the data which is more than 2 yrs(24 months) old.

And, after the transformation, LOADING the transformed data in to the Oracle DB using Talend.

 

Any suggestions, in this regard is highly appreciated.

 

Thanks..

Labels (2)
5 Replies
fdenis
Master
Master

good luck!

start by a data map with the true field definition (what, from where, ….).
be careful of date data field! are they usable to shrink datas?
be careful of data who have to be sum-up!

good luck again.
Anonymous
Not applicable
Author

Hi fdenis,

 

I'm just a beginner in Talend-DI.

But, to answer your question, yes the date data field is allowed to shrink the data.

Also, do i write the transformation rules using tjava component or, a stored procedure on the destination DB(Oracle)

Can you explain me step by step to perform this task. I would really appreciate.

 

Thanks in Advance..

 

fdenis
Master
Master

is your source full?
is it a one shot process or a dally one?
is oracle db a production db or an archive db?

replie are:
source full --> just use simple select
oracle db is production ! resources are for prod -->no store proc.
daly run --> check process duration
one shot --> think of migration failure

when writing job use tmap. do not use tjava for everything.

good luck.
your question is define global view to chose the best technical solution.
it's your job. I could not give you the perfect solution if I'm not in your place.
I can try to help you.
good luck

Anonymous
Not applicable
Author

Thank You for your prompt responses @fdenis

 

source full --> just use simple select --> Source is not full but on the process of Data warehousing.
oracle db is production ! resources are for prod -->no store proc. --> OK
daly run --> check process duration --> NO
one shot --> think of migration failure --> PERIODIC ( MONTHLY/WEEKLY/QUARTERLY) BASIS

 

In tMap, do i need to take the Date field and write the transformation function? If possible, could you give a sample query / expression used for my purpose?

 

+++

fdenis
Master
Master

so yo are building a data warehouse.
Did you have a staging area? if yes, use it
if no code have to be into Talend, Standardized and Documented.
no sample is possible for me.