Thanks everyone for the feedback!
Adding the key column (with value=1) to both files was the trick.
Nice. I'll mark this as resolved.
Search found 29 matches
- Wed Sep 28, 2011 9:12 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Cartesian Product - Join 2 Input Files
- Replies: 5
- Views: 7823
- Tue Sep 27, 2011 12:23 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Cartesian Product - Join 2 Input Files
- Replies: 5
- Views: 7823
Cartesian Product - Join 2 Input Files
Is it possible to perform a cartesian product on two input files using DataStage? Input File#1 (3 rows, 1 column) Colx A B C Input File #2 (2 rows, 1 column) Coly 1 2 Output File (6 rows, 2 columns) Colx Coly A 1 A 2 B 1 B 2 C 1 C 2 I tried the Join Stage, but the Outer Join is not the same as a car...
- Sun Sep 25, 2011 3:16 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Transformer/Pivot Challenge - variable column names
- Replies: 5
- Views: 7396
- Sun Sep 25, 2011 11:51 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Transformer/Pivot Challenge - variable column names
- Replies: 5
- Views: 7396
Yes, target is a flat file. Here's what I started: Transformer Loop Output ID COLNAME COLVALUE AA C1 05 AA C2 10 BB C1 20 BB C3 25 BB C4 50 CC C2 15 CC C6 12 Vertical Pivot Output ID COLVALUE_1 COLVALUE_2 COLVALUE_3, ... COLVALUE_N AA 05 10 BB 20 25 50 CC 15 12 Issues with my output: 1. Column names...
- Sun Sep 25, 2011 9:39 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Transformer/Pivot Challenge - variable column names
- Replies: 5
- Views: 7396
Transformer/Pivot Challenge - variable column names
Here's the challenge... Input File (1 column) AA,C1=05,C2=10 BB,C1=20,C3=25,C4=50 CC,C2=15,C6=12 Output (7 columns in this example, could have 100+ columns) ID C1 C2 C3 C4 C5 C6 AA 05 10 NL NL NL NL BB 20 NL 25 50 NL NL CC NL 15 NL NL NL 12 Notes: 1. The 'NL' represents a null value for the column 2...
- Fri Jul 30, 2010 9:36 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: How can I force an error on a negative DB2 Return Code?
- Replies: 12
- Views: 6075
- Thu Jul 29, 2010 7:35 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: How can I force an error on a negative DB2 Return Code?
- Replies: 12
- Views: 6075
- Thu Jul 29, 2010 3:49 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: How can I force an error on a negative DB2 Return Code?
- Replies: 12
- Views: 6075
- Thu Jul 29, 2010 10:49 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: How can I force an error on a negative DB2 Return Code?
- Replies: 12
- Views: 6075
That solution is an option, but one that would require a Transformer Stage after every ODBC (DB2 select) Stage. This would be a lot of rework on our existing jobs, but I do appreciate your insight. I need to confirm this, but I believe a SQL -911 on our ODBC connection to our DB2 mainframe issues a ...
- Tue Jul 06, 2010 10:11 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Creating Folders and Files
- Replies: 3
- Views: 2188
- Tue Jul 06, 2010 9:50 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: SQL0407N - DB2 null value problem
- Replies: 14
- Views: 9102
I just wanted thank everyone for their comments on this topic. It's now resolved...turns out that this was all related to a scheduling problem on our system which affected the data and underlying queries. The DataStage processes were getting started just a few minutes too early. Recompiling the jobs...
- Fri Jun 25, 2010 9:28 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: SQL0407N - DB2 null value problem
- Replies: 14
- Views: 9102
The hash file was only there for us to review what was actually inserted into the DB2 table during the batch cycle. It was a nice to have for troubleshooting, etc. but not really required and really didn't help. If it makes any difference the file had approx 500,000 records. One option that we didn'...
- Fri Jun 25, 2010 8:35 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: SQL0407N - DB2 null value problem
- Replies: 14
- Views: 9102
We removed the hash file from the job, and it ran without issues in production last night...originally we had a Transformer-->Hash File-->ODBC Insert setup, now we have just the Transformer-->ODBC Insert. We are still don't know why the original flow doesn't work; we had to do something as the on-ca...
- Thu Jun 24, 2010 6:43 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: SQL0407N - DB2 null value problem
- Replies: 14
- Views: 9102
- Thu Jun 24, 2010 4:01 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: SQL0407N - DB2 null value problem
- Replies: 14
- Views: 9102