Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Emp login_timestamp Logout_timestamp
A,2019-02-01 02:24:15,2019-02-01 04:59:42
B,2019-03-29 14:43:30,2019-03-29 20:22:00
ABC,2019-03-29 12:43:00,2019-03-29 23:22:59

In the above calculate the duration of hours spent in office for each emp in datastage.

Answer Posted / geepee

Transfromer Fun:



The above scenario can be solved using transformer stage date functions.

Stagervar1: SecondsSinceFromTimestamp(DSLink3.Logout_timestamp, DSLink3.login_timestamp) - Float datatype

Duration: TimeFromMidnightSeconds(StageVar1) -- Time datatype

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between validated and compiled in the datastage?

1300


What are the steps required to kill the job in Datastage?

1219


Different ways a project can be moved to production ?...example ….export-import and Version control.

2456


how to read 100 records at a time in source a) hw is it fr metadata Same and b) if metadata is nt same?

2189


In Informatica,for the table I can find coreesponding dependent mappings.Likewise can I find the dependent jobs with all the information by using the table name

2488


In a batch if a job fails in between and you want to restart the batch from that particular job and not from the scratch then what will you do?

1042


how to achieve this output ? Two Input columns(ID & Name) - ID | Name 1 | Jack 1 | Kara In output there should be only 1 column which will be populated as - 1,Jack 1,Kara

811


How one source columns or rows to be loaded in to two different tables?

1134


What are stage variables and constants?

1154


What is difference between join, merge and lookup stage?

1107


how to write server Routine coding?

2133


What is the difference between the local container and shared container?

1109


Highlight the main features of datastage?

1168


how can we validate the flat files using the date in the header and number of records in the flat file? Using both conditions at a time.

3353


What is the importance of the exception activity in datastage?

1073