Search found 32 matches

by vgupta88
Thu Jul 06, 2017 4:01 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Missing record delimiter "\n", saw EOF instead
Replies: 22
Views: 44459

I also faced the same issue. Below 2 points made my job successfully finish without any warnings: 1) My file should follow the below format. Instead of Case2, follow Case1: Case 1 ABCTTTAAAABBB ABCTTTAAAABBB ABCTTTAAAABBB ABCTTTAAAABBB | Case 2 ABCTTTAAAABBB ABCTTTAAAABBB ABCTTTAAAABBB ABCTTTAAAABBB...
by vgupta88
Tue Jun 27, 2017 10:22 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to use Power (Pwr) function
Replies: 16
Views: 9577

Yes. That is a part of formula that needs to be applied in the expression.
by vgupta88
Tue Jun 27, 2017 9:30 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to use Power (Pwr) function
Replies: 16
Views: 9577

Hi Ray,
Those constant values were just to illustrate my example. However, my expression has a datatype defined as decimal(38,10):

pwr((1+DSLink.Percent/100),(DSLink.Period/12)) -1

Thanks!
by vgupta88
Thu Jun 22, 2017 1:36 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to use Power (Pwr) function
Replies: 16
Views: 9577

I have my datatype defined as decimal(38,10) only.. so that is not being treated as Integer.
by vgupta88
Wed Jun 21, 2017 3:56 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to use Power (Pwr) function
Replies: 16
Views: 9577

Hi Rodriguez, I verified the datatypes and they are correctly set. Similarly, the parenthesis imposed are correct. Hi UCDI, If I consider the hard coded example as ((1+(-2)/100)^(1/12)-1), expected result is -0.001682143. However, in DS, when I use the PWR function, I am always getting value as 1 (b...
by vgupta88
Tue Jun 20, 2017 4:36 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to use Power (Pwr) function
Replies: 16
Views: 9577

Hi Craig,
Please ignore "*100" on the RHS.. that was just to show case one example that I actually needed..


Hi UCDI,
It's not a negative number.. if you manually resolve that value, it'll end up being:

((98/100)^(1/12))-1

Pls note the parenthesis in the above example.

Thanks!
by vgupta88
Mon Jun 19, 2017 12:17 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to use Power (Pwr) function
Replies: 16
Views: 9577

Can someone please help me with this?
by vgupta88
Sat Jun 17, 2017 8:16 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to use Power (Pwr) function
Replies: 16
Views: 9577

How to use Power (Pwr) function

Hi All, I am trying to use power function (pwr)in stage variable.. However, I am unable to achieve my result set in my parallel job. Below is the expression that I need to use in my derivation. Just for your information, below derivation works properly fine when I run the formula in Excel sheet with...
by vgupta88
Fri Jul 08, 2016 6:20 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: After SQL - Refresh View Failing
Replies: 4
Views: 8901

Hi Craig and qt_ky, Thanks for your inputs. I can execute those commands through Toad. And I confirmed with my DBA too, I have grants too. Not sure, what is causing the error. To keep my work going, I have created a Unix script to refresh my view which I am calling in my After Job sub-routine. Thank...
by vgupta88
Thu Jun 30, 2016 2:28 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: After SQL - Refresh View Failing
Replies: 4
Views: 8901

After SQL - Refresh View Failing

I searched a lot on this forum but no luck for my solution. I am calling below script in my AFTER Sql to refresh my Materialized view but it is failing. I already tried below options: 1) EXEC DBMS_MVIEW.REFRESH('ABC', atomic_refresh => false,out_of_place => true); Error: ORA-00900: invalid SQL state...
by vgupta88
Sun Jun 26, 2016 6:19 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Passing Parameter in Stored Procedure stage
Replies: 3
Views: 3878

I got a work around by calling my procedures through Oracle connector stage.
by vgupta88
Sat Jun 18, 2016 10:34 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Passing Parameter in Stored Procedure stage
Replies: 3
Views: 3878

Thanks for the input. Now I am using metadata as the input to the SP stage.
However, can you please tell me how parameters are bind/mapped into the PARAMETERS tab? Does the properties that I mentioned in the PARAMETERS tab looks good?
Appreciate your help in this.
by vgupta88
Fri Jun 17, 2016 9:23 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Passing Parameter in Stored Procedure stage
Replies: 3
Views: 3878

Passing Parameter in Stored Procedure stage

Hi, I have an Oracle procedure which I am invoking in DataStage. This procedure accepts one parameter from my ETL job and loads my target table. I am finding it difficult to map parameter in the Parameters tab. Below is my simple job design: Row Generator Stage --> Stored Procedure Stage. Below are ...
by vgupta88
Tue Feb 23, 2016 11:34 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: warning 'delim=end' did not consume entire input
Replies: 5
Views: 25963

Can anyone explain the reason behind this?
It worked for me too.. :)
by vgupta88
Sun Feb 21, 2016 2:16 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Converting StringToDecimal and back DecimalToString
Replies: 9
Views: 5231

Craig, It should get rounded to "2000.3". As of now, I am using two transformer stages to achieve my end result. Step 1) Converting varchar2(25) to Decimal(20,1) using syntax: StringToDecimal(2000.29). Step 2) Convering Decimal(20,1) to varchar2(25) using syntax: DecimalToString(2000.3,&qu...