-
Print latest records with UNIX commands
What is the command to print latest 5 records in UNIX (command level)
-
Splitting a Large Job DataStage into Smaller Jobs
What is the process to split the large datastage job into smaller jobs?
-
Convert Column Data into Row Data
Solve in Datastage Input: col1, col2, col3 ---------------- a, b, c d, e, f Output like Col --- a b c d e f
-
Display with Commas
Solve these with suitable logics in datastage Input is like.. department_no, employee_name ---------------------------- 20, R 10, A 10, D 20, P 10, B 10, C 20, Q 20, S want result like department_no, employee_list -------------------------------- 10, A 10, A,B 10, A,B,C 10, ...
-
Display previous row salary in the current row Display next row salary in the current row
Solve with steps employee_id, salary ----------------------------- 10, 1000 20, 2000 30, 3000 40, 5000 output for (previous row salary in the current row) as below employee_id, salary, pre_row_salary ----------------------------------- 10, 1000, Null 20, 2000, 1000 30, 3000, 2000 40, 5000, 3000 output...
-
Cumulative Sum Calculation
Solve with steps in datastage employee_id, salary -------------------------- 10, 1000 20, 2000 30, 3000 40, 5000 Display as employee_id, salary, cumulative_sum ----------------------------------- 10, 1000, 1000 20, 2000, 3000 30, 3000, 6000 40, 5000, 11000
-
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, RANK 1 A 100 3 2 A ...
-
Giving occurances
can anyone pls solve in datastage......... source column is.. A A B B B C C D ........want output columns(2 cols) as......... A 1 A 2 B 1 B 2 B 3 C 1 C 2 D 1 THANX IN ADVANCE.
-
Single column with multiple rows should be converted into single row with commas in datastage
Can any one help.... I have single column in Source like..... a b c d want target as..... a,b,c,d thanks in advance
-
Single column with multiple rows should be converted into single row with commas
Can any one help.... Source is..... a b c d want target as..... a,b,c,d thanks in advance
-
convert multiple rows into single row
hi... i have sourse like name,city johny,newyork johny,mumbai johny,del want output like..... name,city1,city2,city3 johny,nework,mumbai,delhi ----------------------------------------- thanks in advance...
-
Convert multiple rows into columns in datastage
hi i have sourse like name,city johny,newyork johny,mumbai johny,del want output like name,city1,city2,city3 johny,nework,mumbai,delhi thanks in advance..