-
Duplicate Record in Datastage
I have one scenario below, how can we achieve.
City1,City2,Distance
==============
blr, pune,1000 km
pune, blr, 1000 km
As we have same data in 2 records but need to delete any one of the duplicate record. -
Datastage Real time scenario
source table
name
A
A
B
B
B
C
C
D
In source table data like this
but I want traget table like this
name count
A 1
A 2
B 1
B 2
B 3
C 1
C 2
D 1
pls any one one solve this........ -
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 -
Job has no config file
If the paralle or seq job do not have configuration file..will it run successfully or not. ( If the job throws any error if yes what type of error it will be)
-
Dataset stage and sequential file stage
what is the difference between dataset stage and sequential file stage? even one more to be added here, What is the difference between dataset stage and fileset stage?
-
Delete Duplicates Using Transformer
1.Without using stage variable how can we delete the duplicates using Transformer?
2.If we will remove duplicates using Transformer then minimum how many stage variable required for this? -
Single Column Source Data
Source have single column data, How can I get Target like row 1 goes to target 1, row 2 goes to target 2.
src :-
column_id
1
2
3
4
.
.
.
1000 ,
Target :-
Target1(1)
Target2(2)
Target3(3),
Target4(4)
.
.
Target1000(1000)
How can you achieve this scenario? -
Having single input source want three different outputs.
I have a source file having data like:
10
10
10
20
20
20
30
30
40
40
50
60
70
i want three output from the above input file, these output would be:
1) having only unique records no duplicates should be there. Like:
10
20
30
40
50
60
70
2) having only duplicate records,... -
How to convert multiple rows into single row in datastage
Hi,
Can you please solve this in datastage..
my input is
name,city
johnson,newyork
johnson,mumbai
johnson,delhi
want output as
name,city1,city2,city3
johnson,newyork,mumbai,delhi
pls explain with steps
thanking in advance... -
Pre Row Salary, Next Row Salary, Rank and Dense Rank
How to find out second highest salary as group wise by using datastage? Can you explain scenarios like pre row salary, next row salary, rank and dense rank
-
Datastage Scenerio
how i can achieve below logic in datastage
A B C D
B C D
C D
D
it can be number and symbol also
1/2
/2
2 -
Compile Source Records
I have 10 Million records in source and target 5 million records were populated then job was aborted again i go and compile and run the job when that time job will run from 5million 1 record to remain records how?
-
Convert 1 file into 3 files
Details:
Col
-----
C1
C2
C3
C4
C5
C6
C7
C8
C9
C10
we want to generate output like:
Col1 Col2 Col3
C1 C2 C3
C4 C5 C6
C7 C8 C9
C10
Can anyone please help me on this scenario?
-
Datastage job scenario question
My input has a unique column-id with the values 10,20,30.....how can i get first record in one o/p file,last record in another o/p file and rest of the records in 3rd o/p file?
-
Load Different Data Files in Single Target Table
How to load the different data files in single target table using one data stage job? Files are having different name and data but target table in static.
-
How to count the records except header and footer in a sequential file
I have a sequential file it is having some records and the same file is having header and footer now my question is how to count the records in a file which is not counts the header and footer records and then transform the records in to target and then again we fetch the header and footer to that file which records are matched with the header
-
How to get top five rows in DataStage?
How to get top five rows in DataStage? I tried to use @INROWNUM,@OUTROWNUM system variables in transformer..but they are not giving unique sequential numbers for every row...please help!
Thanks in advance!! -
1 input file with 100 fields, Load 1st field to 1st target and so on...
Input file contains 100 fields, target is
1st field is load into Target 1
2nd field is load into Target 2
3rd field is load into Target3
-----
-----
100th field is load into Target100
How can achieve this scenario ? -
-
Single Datastage Job Different Output
I have to design a job, if I run the job it should get 10 records from emp, if another person runs he should get all the records form emp. How to design such a job?
DataStage Interview Questions
Ans