Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is the use of hoursfromtime() function in transformer stage in datastage?

1119


Is it possible to query a hash file?

2062


Describe the architecture of datastage?

1062


Explain the importance of surrogate key in data warehousing?

1237


What are the components of datastage?

1186


Can you define merge?

1190


Describe link sort?

1060


Describe routines in datastage? Enlist various types of routines.

1054


Have you used Unstructured data?

1374


What is difference between join, merge and lookup stage?

1153


What are the various kinds of containers available in datastage?

1104


Differentiate between Join, Merge and Lookup stage?

1146


What are the repository tables in datastage?

1356


What are the different common services in datastage?

1337


Can anyone tell me a difficult situation who have handled while creating Datastage jobs?

3296