Search found 504 matches

by ShaneMuir
Fri May 29, 2015 9:04 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Table action as truncate Vs truncate statement in before SQL
Replies: 9
Views: 6617

So just to confirm this apparently is by design in the ODBC stage. More information can be found here:
http://www-01.ibm.com/support/docview.w ... wg21445833
by ShaneMuir
Fri May 29, 2015 2:57 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Table action as truncate Vs truncate statement in before SQL
Replies: 9
Views: 6617

Just as a note regarding truncate with the ODBC stage, I have noticed in previous versions that the Truncate table action on the ODBC stage when calling Oracle DB actually performs a delete from statement not a truncate, and as a result has an overhead due to the UNDO space requriements. In these in...
by ShaneMuir
Thu May 21, 2015 4:15 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Separately Group Rows then Re-group them in Exact Order
Replies: 9
Views: 2927

Welcome. If the data is as simple as below - you could use a stage variable to geneate a surrogate key value each time a new Type1 is received and then apply that to each other type until such time as the next Type1 is received. That surrogate key could be a number, or the "project" name i...
by ShaneMuir
Tue May 19, 2015 9:59 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Pivot Enterprise Stage - transforming columns to single line
Replies: 1
Views: 1229

I assume that the difficulty is that not all the values for all the target columns will be present for each record? Ie you might only get 10 columns of the 1000 in your source data? This post might help http://www.dsxchange.com/viewtopic.php?t=154172 You would need to tweak it a little. Get your lis...
by ShaneMuir
Tue May 12, 2015 7:49 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Join Stage Dynamics
Replies: 6
Views: 3198

chulett wrote:Are we really talking about a Server job here? The join stage there isn't anything like the Parallel version.
Whoops :oops: failed to notice the Server job bit!

Then yes if a server job, please disregard anything I have said.
by ShaneMuir
Tue May 12, 2015 3:35 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Join Stage Dynamics
Replies: 6
Views: 3198

If I understand you correctly then you have an input link of say 5 records but you are referencing 50000 records? If that is the case and depending on the reference input (is it a DB?) I would use a sparse lookup. A sparse lookup performs an individual lookup for each input row to the reference. So ...
by ShaneMuir
Fri May 08, 2015 11:19 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to prevent truncating before data extraction?
Replies: 14
Views: 4851

Once the query has executed - how long is it taking for data transfer? If all you are after is not having the table empty for so long, is it silly to ask if your query is optimised? Something also that I have wanted to try is, if you have an output reject link from a DB stage which feeds as a refere...
by ShaneMuir
Fri Apr 24, 2015 9:09 am
Forum: General
Topic: Extracting Email Attachments
Replies: 3
Views: 2853

Generally speaking I would say no... but nothing is impossible.

To do so though I would expect you would need some sort of routine to be run on your Email Server to extract all attachments to a given directory that you could then read with DataStage.
by ShaneMuir
Mon Apr 20, 2015 9:39 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Pivot stage too slow
Replies: 2
Views: 2365

Not sure its actually the pivot stage but more likely the sorting that is being done. Before a remove duplicates and a pivot stage I am pretty sure that there is an sort inserted (as the data needs to be sorted prior to performing these activities). Is the duplicate key the same as the pivot key? (o...
by ShaneMuir
Fri Mar 27, 2015 12:00 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Derive Column names from Rows
Replies: 24
Views: 14031

Hello Shane, After implementing the logic you suggested I was able to get the desired result, but recently I ran into a situation where number of columns are not the same for every row hence I am losing the delimiters. This wasn't an issue earlier. ROW 3: |789||123 Sorry not to answer earlier - bee...
by ShaneMuir
Thu Mar 05, 2015 7:39 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Reject Link to ODBC Connector Stage
Replies: 2
Views: 3175

That's because all the columns from reject link are showing in RED colour in transformer stage before getting written to Sequential file stage So if I understand you have a reject link from ODBC stage, going to a transformer? And the output columns on the transformer are "red". Generally ...
by ShaneMuir
Mon Feb 23, 2015 10:57 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Can I accomplish sequential file bursting in a parallel job?
Replies: 8
Views: 6845

generate the whole Path and Filename for each record and put it in front of the "custom seperator character"
Yes sorry - I was a bit vague on that. Good work on deducing the solution though :D
by ShaneMuir
Mon Feb 23, 2015 10:38 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Insert New Rows Only using ODBC Connector to MSSQL
Replies: 10
Views: 11291

UPDATE: So further investigations seem to show that is to do with the ODBC driver. We performed an extra test where we tried to replicate the error in Oracle. When using the ODBC stage to write to a duplicate oracle table, we had the exact same problem where the process hung. However when we switche...
by ShaneMuir
Mon Feb 23, 2015 10:17 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Derive Column names from Rows
Replies: 24
Views: 14031

Are you reading from a file at this point? The stage is probably not reading the new line correctly. At a guess its probably because of the output derivation I provided when creating the file. Currently it is probably something like If @OUTROWNUM = 1 then svHeaders : Char(10) : svBuildData else svBu...
by ShaneMuir
Fri Feb 20, 2015 10:23 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Can I accomplish sequential file bursting in a parallel job?
Replies: 8
Views: 6845

From what I understand you want to create several output files from the one input link. If so you could accomplish what you are after but using an external target stage. Prior to outputting the data, you would have to sort by your burst key column, and based on that key you would generate the requir...