Fixed width file
Moderators: chulett, rschirm, roy
Fixed width file
my project requirement is like this
I have a fixed width file. Now data has to be tranferred from fixed width file to oracle. to achive this Iam using
Sequential file --> Transformer --> oracle enterprise
sample data
+320+20070301+01+00012+00000000+00000000+00001
+319+20070401+01+00012+00000000+00000000+00001
+318+20070301+01+00012+00000000+00000000+00001
in transformer Iam using
field(DSlink1.field[1,4],"+",2)
field(DSlink1.field[5,9],"+",2)
and so on.
Iam using 'field' for removing '+'
In oracle stage I used write method as upsert.
Problem is when I run the job,
ex :
I have 10 records
for first run 10 records are loaded. So total records are 10 now.
for second run again 10 records are loaded (old data only). So total records are 20 now.
but actually it should be only 10 records. I mean to say insertion is happening but not the update.
Note :- Bold column data is of date datatype.
Please provide me the solution ASAP
I have a fixed width file. Now data has to be tranferred from fixed width file to oracle. to achive this Iam using
Sequential file --> Transformer --> oracle enterprise
sample data
+320+20070301+01+00012+00000000+00000000+00001
+319+20070401+01+00012+00000000+00000000+00001
+318+20070301+01+00012+00000000+00000000+00001
in transformer Iam using
field(DSlink1.field[1,4],"+",2)
field(DSlink1.field[5,9],"+",2)
and so on.
Iam using 'field' for removing '+'
In oracle stage I used write method as upsert.
Problem is when I run the job,
ex :
I have 10 records
for first run 10 records are loaded. So total records are 10 now.
for second run again 10 records are loaded (old data only). So total records are 20 now.
but actually it should be only 10 records. I mean to say insertion is happening but not the update.
Note :- Bold column data is of date datatype.
Please provide me the solution ASAP
-
- Premium Member
- Posts: 783
- Joined: Mon Jan 16, 2006 10:17 pm
- Location: Sydney, Australia
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Premium Member
- Posts: 783
- Joined: Mon Jan 16, 2006 10:17 pm
- Location: Sydney, Australia
-
- Participant
- Posts: 334
- Joined: Fri Dec 01, 2006 5:17 am
- Location: Texas
Hi,
can you please paste the INSERT and UPDATE queries which you are using in the job...along with sample records..which are insert into the table...
can you please paste the INSERT and UPDATE queries which you are using in the job...along with sample records..which are insert into the table...
http://findingjobsindatastage.blogspot.com/
Theory is when you know all and nothing works. Practice is when all works and nobody knows why. In this case we have put together theory and practice: nothing works. and nobody knows why! (Albert Einstein)
Theory is when you know all and nothing works. Practice is when all works and nobody knows why. In this case we have put together theory and practice: nothing works. and nobody knows why! (Albert Einstein)
-
- Premium Member
- Posts: 783
- Joined: Mon Jan 16, 2006 10:17 pm
- Location: Sydney, Australia