Search found 7 matches
- Fri Feb 29, 2008 3:05 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Upsert without a Unique Constraint on DB2 Table
- Replies: 1
- Views: 734
Upsert without a Unique Constraint on DB2 Table
Hello, I have a Parallel job that reads from a sequential file and does an "Upsert" on a DB2 table based on user-defined sql. The upsert is done on a column which is not part of the primary key. Because of the way the table is partitioned, creating a unique constraint (index) on this colum...
- Fri Feb 29, 2008 11:36 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Error While Using DB2 Sequence for Surrogate Key
- Replies: 10
- Views: 4258
- Thu Feb 28, 2008 6:45 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Error While Using DB2 Sequence for Surrogate Key
- Replies: 10
- Views: 4258
- Thu Feb 28, 2008 5:48 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Error While Using DB2 Sequence for Surrogate Key
- Replies: 10
- Views: 4258
ArndW, Thanks for the response. No, I checked the job thoroughly and I can confirm that I am not using TSNO anywhere else. But, Here's an interesting thing : When I used a DB2/UDB API stage for the table, the job works fine - I was able to insert records based on the sequence. ( all other jobs at ou...
- Thu Feb 28, 2008 9:16 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Error While Using DB2 Sequence for Surrogate Key
- Replies: 10
- Views: 4258
- Thu Feb 28, 2008 8:38 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Error While Using DB2 Sequence for Surrogate Key
- Replies: 10
- Views: 4258
Ray, Thanks for the information. I removed the column names from the grid, but get a different error message : main_program: Missing field: TSNO in the input dataset. the job structure is : [sequential-file] ---> [transformer]--->db2-table sequential-file structure ( csv) : TS, TSNOTE db2-table-stru...
- Wed Feb 27, 2008 10:13 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Error While Using DB2 Sequence for Surrogate Key
- Replies: 10
- Views: 4258
Error While Using DB2 Sequence for Surrogate Key
Hello, I am trying to generate surrogate keys using a DB2 sequence, but keep getting an error. The user-defined-SQL in the DB2/UDB Enterprise stage is : INSERT INTO TEST_ACCOUNT_LIST (TSNO, TS, TSNOTE) VALUES (NEXTVAL FOR ACC_SEQ, ORCHESTRATE.TS, ORCHESTRATE.TSNOTE) and the Error Message is : test_a...