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
What are routines in datastage? Enlist various types of routines.
What are iconv and oconv?
What is a ds designer?
What is the roundrobin collector?
Differentiate between Join, Merge and Lookup stage?
What are the steps required to kill the job in Datastage?
Highlight the main features of datastage?
Describe routines in datastage? Enlist various types of routines.
What is the method of removing duplicates, without the remove duplicate stage?
Enlist various types of routines in datastage.
Give an idea of system variables.
What are the different kinds of views available in a datastage director?
How to RD using transformer?
how to run a sequential file stage in parallel if the stage is used on the TARGET side
how to read 100 records at a time in source a) hw is it fr metadata Same and b) if metadata is nt same?