Search found 981 matches
- Mon Oct 03, 2005 10:10 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Writing Routines
- Replies: 4
- Views: 1324
Writing Routines
Please suggest manuals that would assist me in learning writing various transform, Before/After routines. Are there any other methods?
- Mon Oct 03, 2005 10:07 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Changing column positions
- Replies: 4
- Views: 1452
- Mon Oct 03, 2005 10:06 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Delimited, missing column, quote " char
- Replies: 1
- Views: 806
Delimited, missing column, quote " char
I went through a number of posts for delimiters, missing columns,et al. A number of problems and an exponential number of solutions for them have been suggested. It would be really great if someone came up with common problems that can occur with such and suggest solutions.
- Mon Oct 03, 2005 10:02 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: If..Else if...else
- Replies: 5
- Views: 1584
- Mon Oct 03, 2005 9:52 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Changing column positions
- Replies: 4
- Views: 1452
Changing column positions
Hey, is there a simple way to reposition the columns that is got from the metadata. Only thing I could do is insert columns, but with all the typings. Importing metadata does not provide solution since it maintains the original order. I require it for maintaining the column order to be used by the B...
- Mon Oct 03, 2005 9:45 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: If key already exists, do NOT pass record, else process it.
- Replies: 9
- Views: 4033
- Mon Oct 03, 2005 9:42 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: If..Else if...else
- Replies: 5
- Views: 1584
- Mon Oct 03, 2005 9:41 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: If..Else if...else
- Replies: 5
- Views: 1584
If..Else if...else
I have 2 stage variables sv1 and sv2, each of which maintain the previous IDs, say empID and storeID, respectively. I need to use a logic such as- If (sv1=True And sv2=True) then 1 Else If (sv1=True And sv2<> True) then 0 Else 1. The code I used is- If (sv1 AND sv2) Then 1 Else If (sv1 AND NOT(sv2))...
- Mon Oct 03, 2005 12:35 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: If hiredate is NULL, then..
- Replies: 6
- Views: 2108
THanks ketfos, the char(128) works. I still haven't understood the reason behind it thogh. Hi, Did you try using the char(128) as suggested earlier. There is another way as follows - if that does not capture the null data if (Trim(DSLink2.hiredate) < char(33) or Trim(DSLink2.hiredate) > char(127) ) ...
- Mon Oct 03, 2005 12:07 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: If hiredate is NULL, then..
- Replies: 6
- Views: 2108
Re: If hiredate is NULL, then..
The source is ODBC pointing to SQL Server 2000, and the data type for hiredate is Timestamp. The SQL Server does show NULL in some records for the hiredate field. However, the check that I specified seems to fail to capture that, and takes the else path. Even with this, when the hiredate is NULL, I ...
- Mon Oct 03, 2005 9:55 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Calculating count ONLY on first occurence of each customer
- Replies: 5
- Views: 1416
THankx Arnd, I got it right. Hello Gateleys, the simplest and most efficient method would be to sort the incoming stream by Cust_ID and then to use a stage variable to store the last Cust_ID value and to do a comparison on this value with the current Cust_ID to see if this has changed in order to do...
- Mon Oct 03, 2005 9:52 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: If hiredate is NULL, then..
- Replies: 6
- Views: 2108
If hiredate is NULL, then..
Hi, I have 2 dates, graduate_date and hiredate. I need to find the number of days between the two. However, if the hiredate is NULL, I need to set the numOfDays to 100, else Difference in days between the 2 dates. Everything works, except that the NULL condition in the hiredate doesn't seem to be ch...
- Mon Oct 03, 2005 12:49 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Calculating count ONLY on first occurence of each customer
- Replies: 5
- Views: 1416
Calculating count ONLY on first occurence of each customer
My input records are as follows, with multiple records for each customer. Cust_ID Cust_Name Value 1 AA 100 2 BB 200 1 AA 50 Now, for the first occurence of each Cust_ID, I need to multiply Value by 5. However, for subsequent occurence of each customer's ID, I just pass the values as they are. So, my...
- Sun Oct 02, 2005 11:39 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: If key already exists, do NOT pass record, else process it.
- Replies: 9
- Views: 4033
- Sun Oct 02, 2005 11:26 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: If key already exists, do NOT pass record, else process it.
- Replies: 9
- Views: 4033
ODBC ----->Transformer---------->seqFile inlink | | outlink | | LookupLink | | WriteHashLink(to write NOTFOUND id to hash) Hash The constraint in the outlink contains LookupLink.NOTFOUND (for the ID). If the hash is populated, initially, with the IDs of each employee, then each ID from source will f...