i have source like
balance,drawtime
20000, 8.30
50000,10.20
3000,4.00

i want target like this
balance,drawtime
20000, 20.30
50000,22.20
3000,16.00

Answers were Sorted based on User's Feedback



i have source like balance,drawtime 20000, 8.30 50000,10.20 3000,4.00 i want target like this..

Answer / thippareddy.p

if (drawtime)< 13 then drawtime=drawtime+12 else drawtime

Is This Answer Correct ?    18 Yes 2 No

i have source like balance,drawtime 20000, 8.30 50000,10.20 3000,4.00 i want target like this..

Answer / subbuchamala

SRC--->Transformer--->TGT

In the TFM Output Columns Derivations:


(HoursFromTime((MyLnk.drawtime:"00"))+12): MinutesFromTime(MyLnk.drawtime)--->OutputColumn

(MyLnk.drawtime:"00")--->Convert Source Format to %hh:%nn:%ss
(HoursFromTime((MyLnk.drawtime:"00"))+12)--->Adding 12 hours to hours from source and Concatanating with Minutes from Source.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Data Stage Interview Questions

Explain entity, attribute and relationship in datastage?

0 Answers  


Difference between server jobs & parallel jobs?

0 Answers  


Name the different types of Lookups in Datastage?

0 Answers  


What is the difference between lookup and sparse lookup?

1 Answers  


Hi,can any one please mention list of dimension and fact tables for Sales and Distribution System for a Pharmacutical company.

0 Answers   Syntel,






in sequtial file 2 columns avaliable,iwant only one column load the target how do it.

10 Answers   Wipro,


what is the use of DSattchJob?DetachJob? where can we find it?

0 Answers   IBM,


Nls stands for what in datastage?

0 Answers  


How did you reconcile source with target?

3 Answers   HP,


What is meta stage?

0 Answers  


can we see the data in fixed width file? how can u change the datatype of fixed width files?

1 Answers   Infosys,


What are routines in datastage? Enlist various types of routines.

0 Answers  


Categories