Search found 57 matches

by KeithM
Wed Sep 15, 2004 12:54 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Merging multiple column values in 1 column
Replies: 4
Views: 1884

I'm not sure that I understand what it is that you are trying to do. Could you provide an example because I'm sure that would help?
by KeithM
Wed Sep 15, 2004 11:50 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Merging multiple column values in 1 column
Replies: 4
Views: 1884

Your calculation should not be too difficult. You can do a simple calculation like you describe in a transformation stage. The derivation for your output column will look something like this: If InputLink.Column1 = 'xxx' Then If InputLink.Column2 = 'xxx' Then InputLink.Column3 - InputLink.Column4 El...
by KeithM
Wed Sep 15, 2004 11:16 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: hash lookup in a range
Replies: 3
Views: 1955

You can only use a hash file stage to do an equal lookup. To do a range lookup you would have to use a different stage like an ODBC stage or the UV stage. You will have to change the SQL to be user-defined and then replace the equal join generated with a greater than/less than join to fit your needs.
by KeithM
Thu Sep 09, 2004 2:04 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Deleting nothing in an ODBC stage
Replies: 1
Views: 594

Deleting nothing in an ODBC stage

Datestage will issue a warning message saying 'zero rows updated' if I use an ODBC stage to do updates and the key being updated doesn't exist in the table. I expected this same behavior when doing deletes. I used an ODBC stage and changed the SQL to user defined so that I could issue a delete state...
by KeithM
Wed Sep 01, 2004 8:11 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Handling Null value
Replies: 2
Views: 1718

I agree with Charley. I would try to avoid Null values in your tables and would convert any null value to the 'NA' when populating your fact table. One other thing you may have to consider is if the column you are converting makes up part of your key in the fact table, you have the potential to crea...
by KeithM
Wed Sep 01, 2004 7:42 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: DataStage freezes when i loads data from IQ to SQL Server
Replies: 5
Views: 2399

Since you can write to a flat file but can't write to SQL Server maybe the problem is with SQL Server like a lock on the table that you are trying to write to. Are you able to write to this table using something other than Datastage like Query Analyzer?
by KeithM
Wed Aug 25, 2004 4:45 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Column name in Pivot Stage
Replies: 11
Views: 10426

You would not be able to turn the column names into data in the pivot. You can do what you describe in a transformation stage after the pivot using stage variables. The first would be a counter and the second would be a big If statement to assign the description. The following is an example with jus...
by KeithM
Wed Aug 25, 2004 6:47 am
Forum: General
Topic: KeyMgmt Function
Replies: 21
Views: 11631

where should i write this command ?
You can enter these statements through the command window in Administrator.
by KeithM
Tue Aug 24, 2004 4:33 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Row Counter
Replies: 8
Views: 3482

You could do it by inserting a hash file into your process. You would write a record out to the hash for each or your three output stages. The key would be a constant indicating either stage1, 2, or 3 and you would have a count field which you could populate with @OutRowNum. Then everytime it writes...
by KeithM
Tue Aug 24, 2004 3:31 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Row Counter
Replies: 8
Views: 3482

Datastage does provide some system variable that may give you what you are looking for. @InRowNum and @OutRowNum will give you a count of the number of rows that come in and exit your process. You can also do it on your own using stage variables. If you have more detail on what you are trying to acc...
by KeithM
Tue Aug 24, 2004 9:03 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: DataStage comparison to Oracle OWB
Replies: 11
Views: 8462

I worked with Oracle Warehouse Builder for the past three years and honestly, I prefer many of the features of OWB over Datastage. We were able to do everything that we needed using OWB to develop a fairly complex data warehouse. That being said, I would never pick OWB to develop a warehouse again. ...
by KeithM
Wed Aug 18, 2004 3:11 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Column name in Pivot Stage
Replies: 11
Views: 10426

You can create your 'Sub' column after the pivot using a stage variable in a transformer stage. Name the stage variable like SV1 and initialize it to 0. Then the logic would be something like 'If SV1 = 3 then 1 else SV1 + 1.' This will give you the 1,2,3 for each group and you can just cancatenate t...
by KeithM
Tue Aug 10, 2004 4:17 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Numbers Sequence
Replies: 5
Views: 1425

You can reset it through the command line in the administrator. The command is: UPDATE SDKSequences USING DICT VOC SET F1 = '1' WHERE @ID = 'key_you _want_to_reset';
by KeithM
Tue Aug 03, 2004 4:19 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: The data in (2D format) Excel sheet is to arrange in table
Replies: 2
Views: 950

You can create your 'Dealer' column after the pivot using a stage variable in a transformer stage. Name the stage variable like SV1 and initialize it to 0. Then the logic would be something like 'If SV1 = 3 then 1 else SV1 + 1.' This will give you the 1,2,3 for each group and you can just cancatenat...
by KeithM
Tue Aug 03, 2004 3:49 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Convert Row's to Columns and Columns to Rows
Replies: 3
Views: 2168

You can use the pivot stage to convert columns to rows. Converting rows to columns is a little harder. There have been numerous posts on that topic in this forum. Do a search on 'vertical pivot'.