logging job start and end datetime

One Star

logging job start and end datetime

When the job has finished succesfully, i want to save via tPostgreSQLSP (myLogFunction (date, date)) the job start and end -datetime-
How do i retrieve those variables and send them to my tPostgreSQLSP when the job has finished?
Regards
One Star

Re: logging job start and end datetime

Hi,
you can use tChronometerStart and tChronometerStop components to catch start and end date. if you have a java project manipulate those variables to deduce your end date : ((String)globalMap.get("tChronometerStop_1_DURATION")) // tChronometerStart_1 is the name of your Start componenent
((String)globalMap.get("tChronometerStart_1_STARTTIME")) //tChronometerStop_1 is the name of your Stop componenent

Regards,
Youssef
One Star

Re: logging job start and end datetime

And if i don't have a java project, im just using a talend job... After the chronometer stop, can i use any component to get those variables and then send them to my tpostgreSQLSP?
One Star

Re: logging job start and end datetime

there is two kinds of Talend projects, Java and Perl? which one do you use?
One Star

Re: logging job start and end datetime

Java.. sorry, i did not understand your previous comment