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
Can you explain players in datastage?
How to read multiple files using a single datastage job if files have the same metadata?
What are the difference types of stages?
A signal has a wavelength of 1 micro min in air.how far can the front of the wave travel during 1000periods?
Why do you need stage variables?
I/p : F1 table have A,B,C,D,E and F2 table having C,E,V i need output 0utput1: ABD output2: V any one suggest me this
What is the project in datastage?
What are some prerequisites for datastage?
what is the use of materialized view?
Different ways a project can be moved to production ?...example ….export-import and Version control.
How many Key we can define in remove duplicate stage?
Can you explain kafka connector?
What is the importance of the exception activity in datastage?
How can we improve performance of data stage jobs?
I have a few records just I want to store data in to targets cycling way how?