-
-
Scenario based question
How to find if the next value in a column is incrementing or not
for ex
100
200
300
400
If the curval greater than previous val then print greater if lesser print lesser
For ex
100
200
150
400, Here 150 -
Datastage scenario Question
A Sequences is calling activity 1, activity 2 and activity 3.while running, activity 1 and 2 got finished but 3 got aborted. How can I design a sequence such that the sequence has to run from activity 2 when I restart the sequences?
-
-
Remove Leading Zero
How to remove leading zeros in data and transform data to target?
-
-
Dataset utility question
How can we retrieve the particular rows in dataset by using orchadmin command?
-
-
-
-
Increment Values based on column (Looping)
I have source like this
Num, SeqNo,Ln,Qty
101, 1 ,1,5
I wanna target following below
Num,SeqNo,Ln,Qty
101, 1 , 1, 1
101, 1 , 2, 1
101, 1 , 3, 1
101, 1 , 4, 1
101, 1 , 5, 1
Based on Qty value records will be incremented.If qty value is 4 then o/p will be like below
Num,SeqNo,Ln,Qty
101, 1... -
Most Difficult Jobs you have created
Hi Guys,
I have 3 yrs for experiences in datastage , though not much practical experience due to various reasons, now I have been asked this question in 4 of my interviews and I am always flounder at it . Have tried different approaches , telling the truth , telling a real situation I faced which actually was not that difficult , but I always seems to flounder at this question... -
-
How to handle Date convertions in Datastage? Convert a mm/dd/yyyy format to yyyy-dd-mm?
We use a) "Iconv" function - Internal Convertion. b) "Oconv" function - External Convertion. Function to convert mm/dd/yyyy format to yyyy-dd-mm is Oconv(Iconv(Filedname,"D/MDY[2,2,4]"),"D-MDY[2,2,4]")
-
-
-
How to perform loj nd ij in lookup stage
How to perform left outer join and right outer join in lookup stage
-
Job based scenario
TABLE T1 with c1 and Table T2 with c1
1 3
2 4
2 5
3
4
5
... -
How did you handle an 'Aborted' sequencer?
In almost all cases we have to delete the data inserted by this from DB manually and fix the job and then run the job again.
-
DataStage Interview Questions
Ans