I have a file it contain 2 records like empname,company as
Ram, Tcs and Ram, IBM. But i want empname,
company1,company2 as Ram, TCS,IBM in the target. How?

Answer Posted / subhash

The Simple way is:
SRCFile---->PIVOT Stage---->TGT
1. in PIVOT stage, select vertical PIVOT option.
2. specify the 'Array Size' as 2
3. select the 'Group by' check box for 'empname'
4. select the 'Pivot' check box for 'company'
then u will get the desired output.

Is This Answer Correct ?    11 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why fact table is in normal form?

770


What is the roundrobin collector?

738


What are the stages in datastage?

729


What is usage analysis in datastage?

915


What are the main differences you have observed between 7.x and 8.x version of datastage?

705






hi.... am facing typical problem in every interview " I need some critical scenarios faced in real time" plz help me guys

2518


What could be a data source system?

660


What is the difference between hashfile and sequential file?

815


Can you filter data in hashed file?

3454


Explain datastage architecture?

928


How will you move hashed file from one location to another location?

1773


Define orabulk and bcp stages?

788


Whats difference betweeen operational data stage (ods) and data warehouse?

754


sed,awk,head

1067


Explain the datastage parallel extender (px) or enterprise edition (ee)?

850