Hi,
I have 3 records,
1 Srini
1 vasa
2 reddy
now i want o/p like this
1 Srinivasa
2 reddy
could u please help in this
Thanks in advance.
Answers were Sorted based on User's Feedback
Answer / madhavareddy
seqstage->sortstage->transformerstage->removedupicatestage->targetdataset
sortstage->put chagekeycolum=true
transformer -> stagevariable->sv1 if change key colum =1 then in.column else sv1::in.column
in derivation colum give ->sv1
then in remove duplicate stage keep last record option
then you will get desired output
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / prasad
MadhavaReddy, who gave logic that is correct.
I tried, got exact result.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / gopal
In the transformer stage u can use concatination symbol for
first two records like Record1 : Record2 this is for first
column and second column u mentioned as it is.
Is This Answer Correct ? | 6 Yes | 9 No |
Answer / radhakant kumar
hey it is just a example it could be like this..
1 Srini
1 vasa
1 aaaaa
the complete solution will be
say col1 and col2 so define stage variable in transformer
col1--------------->a(interger)
col2--------------->b(varchar)
if a=c then d:b else ''-->e(varchar)
e----->d(varchar)
a----->c(integer)
then in target pass e value to col2 and map col1 to col1
Is This Answer Correct ? | 2 Yes | 5 No |
Answer / narayana kota
Hi
you can do this job using Pivot Stage convert these rows in
Columns by specify the column name in pivot stage as
first_column ,second_column and third_column and using
tranformer stage concatante first_column and second_column
using stage variables and pass to target.
if any method is there plz let me known
Regards
Narayana Kota
pnarayana12@gmail.com
Is This Answer Correct ? | 2 Yes | 6 No |
Answer / satya
Make U r source file as SOURCE and LOOKUP Files then
Make lookup on key(in u r question first column),if u find
then concatination of u r source value and u r look up VALU
(Srini:Vasa)
Is This Answer Correct ? | 1 Yes | 7 No |
I am running a job with 1000 records.. If the job gots aborted after loading 400 records into target... In this case i want to load the records in the target with 401 record... How will we do it??? This scenario is not for sequence job it's only in the job Ex: Seq file--> Trans--> Dataset..
9 Answers Cognizant, IBM, TCS, Virtusa,
when we will use connected Lookup & Unconnected Lookup
I have 3 jobs A,B and C , which are dependent each other. I want to run A & C jobs daily and B job run only on sunday. how can we do it?
Input file one has data as shown below 1 2 3 4 5 6 7 8 Input file two has data like 6 7 8 9 10 11 Design a data stage job which will provide me three output files as shown below: Output 1 6 7 8 Output 2 1 2 3 4 5 Output 3 9 10 11 Let me know your answers
How do you schedule or monitoring the job?
what is diff b/w datastage 8.1,8.5,8.7?
How to create a file using vi editor? 2)how to delete a file in vi editor? 3)How to connect the server datastage to unix? what r the command lines we r using? 4)30 jobs r runnig in unix i want to find out my job. how to do this? give me command?
can explain wt is the pool for file.
How a server job can be converted to a parallel job?
Where the datastage stored his repository?
What is quality stage?
What are the components of ascential data stage?