if a column contains data like
ram,rakesh,madhan,suraj,pradeep,bhaskar then I want to
place names separated by commas in another columns how can
we do?
Answer Posted / shar
Well the Question is not clear at the moment.
if ur question is
1)single col with single row like
name
ram,rakesh,madhan,suraj,pradeep,bhaskar
then
ur requirement of asking is again this?
like
ram,rakesh,madhan,suraj,pradeep,bhaskar
or
2)single col with multiple rows like
ram
rakesh
madhan
suraj
pradeep
bhaskar
and u want o/p like ram,rakesh,madhan,suraj,pradeep,bhaskar.
Then praney anwer doesn't suite to get output.
neither u can use pivot stage using vertical pivoting bec
what will u pivot and group by.... not possible.
Finally one way is:
Use SeqStg-->ColGen-->Tx-->RemDup-->Dataset.
At colgen give a new column and assign 1 to all rows and
send the result to tx.
At tx take three variables and expressions to concatenate
the input with the help of colgen new column.
Hint: If sv1 <> sv3 Then DSLink45.cname Else sv2 : ',' :
At RemDup specify Last value
And finally u will the output.
Still if u dont get what i explained just mail me
shharrath@yahoo.com
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is ds designer?
Difference between ‘validated ok’ and ‘compiled’ in data stage?
What is difference between join, merge and lookup stage?
Demonstrate experience in maintaining quality process standards?
Hi, what is use of Macros,functions and Routines..? At what situation you are used. If you know the answer please explain it. Thanks.
EXPLAIN SCD
How do y read Sequential file from job control?
describe the Steps to confiure a Qlogic switch
How can you write parallel routines in datastage PX?
What are the partitioning techniques available in link partitioner?
What is the purpose of interprocessor stage in server jobs?
How complex jobs are implemented in datstage to improve performance?
What are the features of datastage flow designer?
What is the use of hoursfromtime() function in transformer stage in datastage?
Highlight the main features of datastage?