-
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 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 -
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?
-
Transformer Order of Execution
What is the order of execution in the transformer?
-
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 read 5 input file (having completely different format) using Sequential file stage?
In detailed-
I have 5 input files that are completely different formats (the number of columns and metadata are different). How can I read all files using a sequential file stage? When I read the data from each file, how can I confirm which data belongs to which file?
Sincere request, Please suggest for the correct answer. I appreciate any help you can provide. -
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........ -
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)
-
How to load different metadata file from source to different target in single job
In source we have 10 files with different metadata and different Source files we need to load the files to target with 10 different target but we should do in a single datastage job how can we do this
-
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?
-
How to design a datastage job to find whether the given letters in the word are in alphabetical order or not?
Input:
almost
banana
very
begins
order
in
Output:
almost IN ORDER
banana NOT IN ORDER
very NOT IN ORDER
begins IN ORDER
order NOT IN ORDER
in IN ORDER -
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?
-
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
DataStage Interview Questions
Ans