-
-
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... -
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 -
Getting files In datastage
How to get a files from different servers to one server in datastage by using unix command?
-
-
How to identify updated records in datastage.
How can we identify updated records in datastage? Only updated records without having any row-id and date column available.
-
Design a job
I have table(Emp) with the columns Eid,Ename,Sal,month(sal),year(sal) and DOB (say 15th-Jan-1981).
Design a job such that the output displays Ename,year(sal),tot(sal) and current age i.e. For Ex: 18 yrs -
What are the Datastage native operators
What are the Datastage native operators??
C
C++
BASIC
OSH
Could you brief this please -
Copy Stage in Processing
Having single input in the source wants the repetition of the input in the column of the target using only copy stage.
-
How is Cartesian join performed using a join stage?
I have
source
10
20
20
reference 10
20
20
can someone tell me how a cartesian join performed using a join stage in datastage.
Thanks
Sravanthi -
-
Display the Rank in asending & descending order for salary column
Can anybody solve this interview question in DataStage?
My input is:
EMPNO, DEPTNO, SALARY
1 A 100
2 A 4000
3 A 400
4 B 500
5 B 150
6 B 700
I need extra column "Rank" in the output is:
EMPNO, DEPTNO, SALARY,... -
Lookup and Join
Why lookup is heavy weight and join is light weight operator?
-
Remove Duplicate Stage
Is it possible to find out the maximum salary by using remove duplicate stage? Can you any one explain?
Thanks in advance -
Reverse Pivoting
I have two columns of data
My input data
Field Name Value
Customer_ID 100
Customer_Name ABC
Customer_City Kolkata
Customer_ID 200
Customer_Name BCD
CUstomer_City Mumbai
Customer_ID 300
Customer_Name CDE
Customer_City Delhi
Output date should be
Customer_ID Customer_Name Customer_City
100 ... -
Extract Last 3 Days Data Using SCD
How to extract last 3 days data using SCD?
-
Increasing A Number
I would like to know if you could help me out. I have a a file with 2 columns (TABLENAME and CLOB) and in the TABLENAME there are "Providers". I would like to know how to set them at number 5000 and then increment them, per provider. So if I have 5 providers per file, it would be 5000, 5001, 5002, 5003, 5004. This is a daily file so we will get a file everyday. So Day 2, the 1st provider must be 5005...
-
Convert and Ereplace Every Double Dash
I have heard of both Convert and Ereplace but I am stumped. I need to take every double dash (--) from my files and convert them to a single hyphen (-). What would be the best way to do this?
-
Identify Header, Detail and Trailer Records
Identify Header, Detail and Trailer records in the incoming file and verifying whether trailer count is equal to total number of detail records.
My input is
Header Columnname
Detail row 1
Detail row 2
Detail row 3
Trailer 3
Here I want to see whether total number of detail records is equal to total number of trailer record.
If so proceed... -
Project Data Model
Basically which data model do we use in the project?
DataStage Interview Questions
Ans