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 / cgi

Take sequential file and use sort stage and set keychange
column=true,put filter to output the data to two links, one
is kechange is 0 and other is for 1. first link is directly
goes to join stage and other stage should go to copy
stage.In the copy stage change the company column name to
company2 and populate to join. in the join stage provide
the key column to 'name' and do inner join. u will get
output as required.

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the difference types of stages?

640


What are the different common services in datastage?

720


How many Key we can define in remove duplicate stage?

830


What is the roundrobin collector?

649


i WANTED TO USE THE RANGE LOOKUP SCENARIO IN DATASTAGE 7.5.2 SRVER JOB.i HAVE A DATE FIELD IN SOURCE AND I SHOULD MATCH IT WITH A FIELD IN LOOKUP FILE.BUT,THE FIELDS SHOULD MATCH EVEN THOUGH THERE IS SOME RANGE.CAN SOMEONE TELL ME HOW CAN I DO THAT. THANKS

3327






What are orabulk and bcp stages?

661


How to perform incremental load in datastage?

686


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

632


How do you register plug-ins?

615


Differentiate between validated and Compiled in the Datastage?

658


What is ds designer?

665


tell me 5 situations when we r using oracle db stages like orecle connector, oracle enterprise

2714


in oracle target stage when we use load option and when we use upsert option?

1765


CHANGE CAPTURE

902


Nls stands for what in datastage?

738