Search found 504 matches

by ShaneMuir
Wed Oct 03, 2012 5:42 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: To stop records after the value *
Replies: 16
Views: 9990

Set a stage variable to look for and hold that value, and then use it as a constraint on the output.
by ShaneMuir
Wed Oct 03, 2012 4:10 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Records flow one by one to Lookup table.
Replies: 13
Views: 7327

Hi Ray, I actually had that thought originally - but then upon re-reading (re-interpreting) the requirement, I thought that all the records which have a multiple return are to be rejected. Hence the count rather than the row number.

Either or depending on requirement I guess.
by ShaneMuir
Wed Oct 03, 2012 4:03 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need logic..
Replies: 3
Views: 2828

I would suggest a sparse lookup with a custom sql to select exactly what you want.
by ShaneMuir
Fri Sep 28, 2012 9:26 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: getting error on 00000000 while doing stringtodate
Replies: 14
Views: 5444

Seriously? What Craig meant, was that if your target DB has the field set as DATE then when you look at the value and see 09-12-32, that is just the representation of the date in which ever tool you are using. If you would like to see it represented otherwise, either change the settings in the view ...
by ShaneMuir
Fri Sep 28, 2012 7:27 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Records flow one by one to Lookup table.
Replies: 13
Views: 7327

If I understand there are a number of ways to achieve this. If you want to reject records where it would return multiple rows, you could amend your Oracle lookup select statement to include a count of the key value attached to each record. Something like "select key_value, count(*) over(partiti...
by ShaneMuir
Mon Sep 10, 2012 7:18 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Parrallel Transformer Loop question
Replies: 7
Views: 7807

Re: Parrallel Transformer Loop question

1- I need to include the 'Line' column in my output as shown in my example 2- The input file doesn't contain a fixed number of columns, i mean it could be three columns or more! :S Ok you will need to do the following: 1. Have a stage variable which determines the number of columns that you have. 2...
by ShaneMuir
Mon Sep 10, 2012 7:01 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Parrallel Transformer Loop question
Replies: 7
Views: 7807

Or to remove the if then else from the loop variable, you could have 2 stage variables, sv1: containing the input header names - ie a literal string 'Line1|Line2|Line3' sv2: containing the row input values (as suggested by bhasds) You can then replace the loop variable with lv1: sv1['|',@ITERATION,1...
by ShaneMuir
Fri Aug 31, 2012 7:14 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Usage of TrimLeadingTrailing
Replies: 10
Views: 6090

I suggested that IsValid had an issue, mainly because of your original post which suggested that it was the TrimLeadingTrailing giving the incorrect result, when actually your incorrect result was because the IsValid determined that the string '0123 abc' was a valid decimal and thus created an outpu...
by ShaneMuir
Fri Aug 31, 2012 6:53 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Usage of TrimLeadingTrailing
Replies: 10
Views: 6090

Well you could try the NUM() function in conjunction with IsValid(). I am pretty sure NUM() will return true for 0123 and 0123.01 or 123.456, but false for 0123 abc. Also I am pretty sure that the isvalid test won't actually test whether the input string has the relevant precision rather that it can...
by ShaneMuir
Fri Aug 31, 2012 6:35 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Usage of TrimLeadingTrailing
Replies: 10
Views: 6090

I would suggest using the Num() or Alpha() functions to find those values which contain only numbers or alpha characters.
by ShaneMuir
Fri Aug 31, 2012 6:20 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Usage of TrimLeadingTrailing
Replies: 10
Views: 6090

Its actually the IsValid test that is not working. If you were to pass your input un trimmed into the IsValid test you would probably find that it returns TRUE. TrimleadingTrailing is used to remove space from the beginning and end of fields and leave multiple spaces in the middle of a string if the...
by ShaneMuir
Fri Aug 31, 2012 5:47 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Usage of TrimLeadingTrailing
Replies: 10
Views: 6090

Re: Usage of TrimLeadingTrailing

arpitchopra wrote:I have a feeling that this is because of the Trim function (which sees the space and discards everything after that space).
Did you try outputting the return value of the trim function to see what was actually output?
by ShaneMuir
Fri Aug 31, 2012 1:01 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: APT_combined operator controller error
Replies: 1
Views: 1448

Well the reason for the error is because there an error converting from a string to a date somewhere in your job. If you want to see where in the job the problem is you can add the environment variable APT_DISABLE_COMBINATION and set to true. Did the job abort as part of a sequence? If so then an er...
by ShaneMuir
Thu Aug 30, 2012 9:00 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: NullToEmpty() & Len() --> Combination !
Replies: 4
Views: 5845

Interesting ...

Does the IsNull() function work correctly?
by ShaneMuir
Thu Aug 30, 2012 4:38 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Join Stage
Replies: 3
Views: 1556

At a guess - Do you have the same column name in all the files?

What is your left link? If multiple inputs have the same column names only the column from the left link is available for mapping.