Search found 54 matches

by jherr22
Tue Jul 28, 2009 12:48 pm
Forum: General
Topic: "OR" in a join
Replies: 7
Views: 3901

ddevdutt:

Perfect - that's the ticket!
I appreciate your help!
by jherr22
Tue Jul 28, 2009 6:53 am
Forum: General
Topic: "OR" in a join
Replies: 7
Views: 3901

I would like to replicate the following:

select x.a, y.b
from x, y
where x.m = y.m
or x.n = y.n
by jherr22
Mon Jul 27, 2009 1:59 pm
Forum: General
Topic: "OR" in a join
Replies: 7
Views: 3901

"OR" in a join

Is there a way to incorporate an "OR" condition within a JOIN stage (or lookup)?
by jherr22
Thu Jan 15, 2009 10:14 am
Forum: General
Topic: Check to see if a file exists
Replies: 3
Views: 12777

Thanks for the help - you sent me the answer I was looking for and it works PERFECT!
by jherr22
Wed Jan 14, 2009 4:00 pm
Forum: General
Topic: Check to see if a file exists
Replies: 3
Views: 12777

Check to see if a file exists

I have a case where I do not know at runtime if an input file will exist. Is there a way to dynamically test from datastage if a file exists and continue on if it does not exist? I am running a sequence, and if the file does not exist, I do not want the job accessing it to abort, which would cause t...
by jherr22
Thu Oct 23, 2008 8:16 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: deadlock detected while updating oracle table
Replies: 11
Views: 7943

If running in parallel, at the Oracle stage, click the INPUT tab, then choose partition. Select HASH and select the same columns that comprise the keys for the table you are loading. This will ensure that all the duplicate keys go down the same "path".
by jherr22
Fri Sep 26, 2008 8:55 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Loading parent/child tables in one job
Replies: 9
Views: 4110

girija: Thanks! Will this work even though nothing will go down the reject link? (I think this is what csri is getting at).

Smith: We thought of disabling the FK as you mentioned, but the powers that be will not allow this.
by jherr22
Thu Sep 25, 2008 2:13 pm
Forum: General
Topic: Record Delimiter
Replies: 6
Views: 3504

That is exactly the problem - the text I am capturing does have a LF that I need to preserve. We are getting the source file from another entity with the hex 1e as the record delimiter. We are using the pipe as a field terminator - could we also use a pipe for the record delimiter as well?
by jherr22
Thu Sep 25, 2008 8:41 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Loading parent/child tables in one job
Replies: 9
Views: 4110

Loading parent/child tables in one job

I have a job where I split off from a transformer to load two Oracle tables, one parent, and one child. Even though I ordered the links appropriatly in the transformer stage (parent load first, child second), the child table does not get loaded. I assume it is because the parent Oracle stage has not...
by jherr22
Thu Sep 25, 2008 8:14 am
Forum: General
Topic: Record Delimiter
Replies: 6
Views: 3504

By "record delimiter", I mean

(a) the character that marks the end of the record (the record delimiter)?
by jherr22
Wed Sep 17, 2008 8:43 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: reading an empty dataset without errors
Replies: 0
Views: 1308

reading an empty dataset without errors

In Job #1, one of my output datasets receives zero rows. In Job #2 I try to read in that dataset, and I get errors. Should an empty dataset be an error state?? (Even View Data gives an error rathter than just saying "No Rows".) Is there a way to check the dataset in Job #2 to avoid getting...
by jherr22
Wed Sep 17, 2008 8:30 am
Forum: General
Topic: Record Delimiter
Replies: 6
Views: 3504

Record Delimiter

How do I use hex 1e as the record delimiter reading a sequential file? I assume I use the final delimiter string, but how do I tell it to use a hex character?
by jherr22
Fri Sep 05, 2008 8:45 am
Forum: General
Topic: Oracle Sequence
Replies: 13
Views: 6306

Thank you all for your help - you guys rock!

I did not realize that the sparse lookup was an option in the Oracle stage - I was looking in the lookup stage. Works great now!

Thanks!
by jherr22
Fri Sep 05, 2008 7:12 am
Forum: General
Topic: Oracle Sequence
Replies: 13
Views: 6306

Sorry to be so vague. Here is what I need in more detail. For every row from my input dataset, I need to add a column that has the nextval from my oracle sequence. So, for example, I need to join row 1 of my dataset with sequence.nextval, row2 with sequence.nextval, row3 with sequence.nextval and so...
by jherr22
Fri Sep 05, 2008 7:08 am
Forum: General
Topic: Oracle Sequence
Replies: 13
Views: 6306

Sorry to be so vague. Here is what I need in more detail. For every row from my input dataset, I need to add a column that has the nextval from my oracle sequence. So, for example, I need to join row 1 of my dataset with sequence.nextval, row2 with sequence.nextval, row3 with sequence.nextval and so...