Search found 40 matches
- Mon Jun 28, 2004 7:38 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Stage Variable - conditional incrementing
- Replies: 11
- Views: 4448
Greetings to all, Here is an update. I reversed the condition as follows: Instead of: if isnull(HOP_COV.COVERAGE_KEY) or NOT(ISNULL(INPUT_STREAM.COVERAGE_EXP_DT)) then KeyMgtGetNextValueConcurrent(1) else NextCovKey I changed it as: if NOT(ISNULL(INPUT_STREAM.COVERAGE_EXP_DT)) or isnull(HOP_COV.COVE...
- Fri Jun 25, 2004 5:29 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Stage Variable - conditional incrementing
- Replies: 11
- Views: 4448
- Fri Jun 25, 2004 1:53 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: CRC32 & Null values
- Replies: 3
- Views: 2682
1stpoint, I already have a surrogate key in this table which is the primary key. I was trying to the checksum as an alternate key. Michael I think I will go with the second method you suggested. That is concatenating all the fields and make that as one field. May be I will use the same field as the ...
- Fri Jun 25, 2004 9:51 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Stage Variable - conditional incrementing
- Replies: 11
- Views: 4448
It returns the previous value. I have five records in my test case. the first four have nulls in the coverage_exp_dt but they satisfy the first condition (hop_cov.coverage_key is null) so it returns the following four values one per record: Natural_key Seq_key 1 578 2 579 3 580 4 581 The fifth one h...
- Fri Jun 25, 2004 9:03 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Stage Variable - conditional incrementing
- Replies: 11
- Views: 4448
John, COVERAGE_EXP_DT is a date field. It is not a fk to the date table.It is always either NULL or a date in that field. No blanks in this field. Atleast not in the bunch of records i am testing with. Also I tried this in debug mode and the INPUT_STREAM.COVERAGE_EXP_DT does contain a date, so i wou...
- Fri Jun 25, 2004 7:25 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Stage Variable - conditional incrementing
- Replies: 11
- Views: 4448
Here you go:
Code: Select all
if isnull(HOP_COV.COVERAGE_KEY) or NOT(ISNULL(INPUT_STREAM.COVERAGE_EXP_DT)) then KeyMgtGetNextValueConcurrent(1) else NextCovKey
- Fri Jun 25, 2004 7:22 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: CRC32 & Null values
- Replies: 3
- Views: 2682
CRC32 & Null values
Hello all, I am trying to setup a dirty dimension for which i dont have a natural key to specify. I am thinking of using the checksum value of the row as a field in this table and use that as a natural key. Now, here are my questions: 1. is it a good idea to use that as an alternate key? (primary ke...
- Fri Jun 25, 2004 6:54 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Stage Variable - conditional incrementing
- Replies: 11
- Views: 4448
Stage Variable - conditional incrementing
Hello all, I am incrementing a stage variable based on two conditions. It looks something like this: NextKey = if (isnull(ref_link.ref_key)) or not(isnull(input_link.exp_dt)) then KeyGetNextConcurrent(1) else NextKey This increment works for the first condition but not the second. When ref_link retu...
- Sun Apr 25, 2004 6:14 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Keeping the old value on update
- Replies: 4
- Views: 2279
- Fri Apr 23, 2004 2:09 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Keeping the old value on update
- Replies: 4
- Views: 2279
- Fri Apr 23, 2004 1:37 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Keeping the old value on update
- Replies: 4
- Views: 2279
Keeping the old value on update
Hello all,
In one of my jobs, I am using Insert new or update existing rows. In that I want to move a field from my input stage only while inserting new rows. I want to keep the old value when it is updating an existing row. How can I do that?
Any help is much appreciated.
Regards,
Aravind.
In one of my jobs, I am using Insert new or update existing rows. In that I want to move a field from my input stage only while inserting new rows. I want to keep the old value when it is updating an existing row. How can I do that?
Any help is much appreciated.
Regards,
Aravind.
- Thu Apr 15, 2004 10:20 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Transaction Grouping
- Replies: 4
- Views: 1856
- Thu Apr 15, 2004 7:50 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Transaction Grouping
- Replies: 4
- Views: 1856
Thanks Craig, I have three links and all three links have 'rollback' as 'on Fail' action and 'Continue' as 'On Skip' action. I dont want the previous rows (that are already committed to the database) to be rolledback. I only want the current row to be rolled back. Just exactly as you mentioned, If L...
- Wed Apr 14, 2004 1:08 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Transaction Grouping
- Replies: 4
- Views: 1856
Transaction Grouping
Hello all, I am using Transaction Grouping in one of my jobs. I have one OCI8 stage with three input links coming into it. All three are insert new rows or update existing rows. If link2 or link3 fails, I want all *previous* links to be rolled back also. How can I achieve this? Transaction grouping ...
- Mon Mar 15, 2004 1:56 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Improper data type?
- Replies: 0
- Views: 887