Search found 74 matches

by iskapalli
Fri May 25, 2012 1:11 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: query
Replies: 3
Views: 1306

I chekced return type of SUM funcation. it is takeing as decimal(18,2).

could you please let me know what basis it is takeing as decimal(18,2).
by iskapalli
Thu May 24, 2012 10:06 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: query
Replies: 3
Views: 1306

query

Hi, my job td stage ----> trans-----> tdstage. I have written custom query in the teradata connector stage(source). select sum(reslt_1) from table group by master_trim_id. result_1 decimal(16,2). BUT job is failed. it is expexting decimal(18,2) after useing cast function my job is running fine, sele...
by iskapalli
Fri May 11, 2012 5:07 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Query help
Replies: 5
Views: 1612

Thanks jwiles.

I think no need to use any function since already I have calender table's which I mentioned above.

Please correct me I am worng
by iskapalli
Fri May 11, 2012 4:26 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Query help
Replies: 5
Views: 1612

Please help me
by iskapalli
Fri May 11, 2012 2:40 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Query help
Replies: 5
Views: 1612

Query help

Hi, I need to calculate week in month no by useing below condition. count(WEND) from D_CM_ACCT_CAL where D_CM_ACCT_CAL_DAY.WEND = D_CM_ACCT_CAL.WEND and D_CM_ACCT_CAL_DAY.PERIOD = D_CM_ACCT_CAL.PERIOD D_CM_ACCT_CAL(Table by Week),D_CM_ACCT_CAL_DAY(Table by month) are calender tables. D_CM_ACCT_CAL (...
by iskapalli
Thu May 10, 2012 1:46 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: decode function
Replies: 13
Views: 7550

Thanks for ur solution


Regards,
Srini
by iskapalli
Wed May 09, 2012 10:51 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: decode function
Replies: 13
Views: 7550

This is the compilation error.




when ever n_Xfm_2.MO_NBR= 07 this condition iam getting compilation error
by iskapalli
Wed May 09, 2012 9:51 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: decode function
Replies: 13
Views: 7550

decode function

Hi, I want to implement the following oracle function in DS Transformer. The oracle function is ---- decode(MO_NBR,01 through 09,Fyear +0, 10 through 12, Fyear +1) While i implement this function as --- if (in_Xfm_2.MO_NBR =01 or in_Xfm_2.MO_NBR= 02 or in_Xfm_2.MO_NBR=03 or in_Xfm_2.MO_NBR= 04 or in...
by iskapalli
Wed May 09, 2012 9:29 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: concatenation
Replies: 5
Views: 3313

concatenation

Hi, when i implement the following oracle function in DS Transformer level i am getting the following error message. the oracle function is ----period||trim(to_char(week_in_mn,'0')) . here the datatype of period ,week_in_mn is decimal and double respectively. i have used the following function in tr...
by iskapalli
Mon May 07, 2012 12:52 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Aggregator stage
Replies: 3
Views: 1804

Aggregator stage

Hi,

I want to sum of more than one input column in same output column by useing Aggregator stage.

ex: select sum(col1+ col2) group by col3.

Please help me.
by iskapalli
Wed May 02, 2012 12:31 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: count of the column by using loop variables
Replies: 11
Views: 6326

example

input:
col1
a
b
c
d
e
f

output:
col1 col2
a 6
b 6
c 6
d 6
e 6
f 6

please help me
by iskapalli
Mon Apr 30, 2012 11:31 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: count of the column by using loop variables
Replies: 11
Views: 6326

Sorry Kryt0n I will explain my requirement clearly. job design-> td stage -> transformer-> td stage in source I have written custom query. From this query I am extracting one column(period). I want count of this column. For this I want to use loop variable. I hope you will get my requirement.
by iskapalli
Mon Apr 30, 2012 9:01 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: count of the column by using loop variables
Replies: 11
Views: 6326

this is the requirement. This is the first time iam implementing by useing loop variable.I am trying to give lastrow(col1).but it is not allowing. Please let me know where I am doing wrong
by iskapalli
Mon Apr 30, 2012 11:17 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: count of the column by using loop variables
Replies: 11
Views: 6326

count of the column by using loop variables

Hi, I want to caclulate count of the column by useing loop variables in transformer. select count(col1) from the table. But i am getting 5000 rows out of 10000. Defined the following stage variables: NumSavedRows SaveInputRecord() IsBreak LastRow() NumRows IF IsBreak THEN NumSavedRows ELSE 0 Defined...
by iskapalli
Tue Apr 03, 2012 8:14 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: SurrogateKey
Replies: 5
Views: 1916

Hi ray,

in terms of performence.

and also could you plesae explain what is difference between three approches.