Converting Vertical PIVOTing without using PIVOT stage in DataStage.
Ex:
DEPT_NO EMPNAME
10 Subhash
10 Suresh
10 sravs
Output:
DEPT_NO EMP1 EMP2 EMP3
10 subhash suresh sravs
2) How to implement Horizontal PIVOTing without using PIVOT stage.
Answer Posted / reddymkl.dwh
Use Transformer Stage:
Take two stage variable
sv1= if sv2=DEPT_NO then sv1 : ' ' : EMPNAME
sv2= DEPT_NO
Derivation : Trim(sv1, ' ','L')
U will get output.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Is it possible to query a hash file?
How to find value from a column in a dataset?
what are the devoleper roles in real time? plz tell i am new to datastage....
Define Data Stage?
What is the difference between orabulk and bcp stages?
What is the flow of loading data into fact & dimensional tables?
Difference between sequential file and data set?
root tree will find which is server job and which is parallel job?
What is the different type of jobs in datastage?
What is ibm datastage flow designer?
what are the errors,warnings in datastage
what should be ensure to run the sequence job so that if its get aborted in 10th job before 9job should get succeeded?
Define ds designer?
Where do the datastage jobs get stored?
How to reverse the string using SQL?