You are not logged in.
Announcement
Unanswered posts
|
Pages: 1

I have TOS for Data Integration 5.1
I have Excel input file, which has some duplicated data in cells
For exaple in such columns:
year - 2012, 2012, 2011, 2010, 2012,... and so on
month - March, March, March, September, March, January,...
day - 02, 11, 02, 02, 12, 02,...
I need to get not duplicated data in output file
For example output result
year - 2012, 2011, 2010,... and so on
month - March, September, January,...
day - 02, 11, 12,...
I want to deduplicate data, but I don't know actualy how to do that, while there is no tMatchGroup (It is only in commercial version) and I don't know other methods.
Could you please help me with this problem? Maybe there are some other functions and methods.
Last edited by solosik (2012-05-19 01:55:56)
Offline
hi
You can use tUniqRow to get unique rows and duplicate rows.
Best regards
Shong
Offline
solosik wrote:
In our input xls file all our rows are unique!
We need to deduplicate columns and cells in output data.
Hi
Sorry, I don't understand your request well, can you give us an example to explain it?
What's your input data? What are your expected result?
Best regards
Shong
Offline

But then, after tUniqueRow output, data haven't consecutive id (identificators) For example:
1 September
7 October
12 November
But I need
1 September
2 October
3 November
How can I solve this problem?
Last edited by solosik (2012-05-24 17:09:25)
Offline

We have some months sales data. I need to deduplicate month before outputing it in to the database
FIRST
We have such input Data:
ID--DAY--MONTH------AMOUNT
-----------------------------------
1 03 September 200$
2 05 September 50$
3 07 September 70$
4 10 September 100$
5 12 September 280$
6 17 September 150$
7 01 October 20$
8 07 October 190$
9 09 October 205$
10 12 October 330$
11 15 October 120$
12 01 November 60$
14 11 November 220$
15 18 November 300$
SECOND
Using tMap and tUniqRow for column MONTH. We have get such Output data in the table Month:
ID--MONTH
-----------------
1 September
7 October
12 November
PROBLEM
These ID's are not correct, and the result should be smth like this. Table MONTH:
ID--MONTH
-----------------
1 September
2 October
3 November
Last edited by solosik (2012-05-24 17:38:13)
Offline
Hi
After you get the unique rows, you can use system function Numeric.sequence("s1",1,1) to generate a sequence number for each row on another tMap.
Best regards
Shong
Offline
Hi
Are you using different sequence in your job? "s1" is the sequence name of this function, it should start with 1 every time you execute the job. Please describe the problem with more information.
Best regards
Shong
Offline
Hi
Add this code on tJava at the beginning of job, for example:
tJava
|
onsubjobok
|
the rest of job
on tJava:
Numeric.resetSequence("s1",0)
Is it clear for you?
Best regards
Shong
Offline
Pages: 1