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

Nls stands for what in datastage?

726


What are the repository tables in datastage?

817


How many types of stage?

671


im new to this tool im now at project plz tell me step by step process how to design plz help me i wnt to go with exp for job plz give me d proper design and explination

1627


Explain Quality stage?

661






what are .ctl(control files) files ? how the dataset stage have better performance by this files?

2179


Explain usage analysis in datastage?

647


What are datastage sequences?

663


How to convert RGB Value to Hexadecimal values in datastage?

3451


How do you generate sequence number in datastage?

621


On which interface you will be working as a developer?

631


What is merge stage?

760


What are constraints and derivations?

644


AGGREGATOR default datatype

931


Triggers,VIEW,Procedures

796