Search found 45 matches

by yimwai
Mon Dec 20, 2010 9:58 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: how to remove the end point in decimal column
Replies: 1
Views: 1433

how to remove the end point in decimal column

I transcode a complex file to a sequential file without any change in column type.But I fail to load data from sequential file to SQL server by bcp tool because there is a point "." at the end of decimal column(with decimalplace 0) such as decimal(8,0). If I change the column type from dec...
by yimwai
Mon Dec 20, 2010 1:54 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: how to use DB2 function in stage
Replies: 6
Views: 3074

how to use DB2 function in stage

Can I use DB2 function to transform a column in Transformer stage?
by yimwai
Thu Nov 04, 2010 5:08 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: problem when reading Chinese character in complex flat file
Replies: 1
Views: 1581

problem when reading Chinese character in complex flat file

I need to read one complex file and load the data into DB2. THE COPYBOOK is like as follow: 1:RCZSCB3A:-REC. 05 :RCZSCB3A:-NAME X(10). And The Table: A( NAME CHAR(10) ) Some Chinese characters may be in the column , so I set the property "extended" : "unicode" "nls map"...
by yimwai
Fri Oct 29, 2010 2:56 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Counting rows and summing columns in same aggregator stage
Replies: 4
Views: 4630

add a column before with value "1" , then sum
by yimwai
Fri Oct 29, 2010 2:53 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: how to remove "shift in/out characters"
Replies: 2
Views: 1495

how to remove "shift in/out characters"

1st,I use PxCFF stage to read an EBCDIC file "F" and load data to table "T", then i read the same file again and use difference stage to compare the data from "T" and "F". ( only compare on column with Chinese characters.) I find that result is "all diffe...
by yimwai
Wed Oct 27, 2010 2:28 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: "loaded" value are different from "writed&quo
Replies: 0
Views: 576

"loaded" value are different from "writed&quo

When I use "load" mode to insert some data (DB2 ENTERPRISE STAGE), the value NULL (column type is smallint )is inserted as 0.
WHEN USING "write", null is inserted.
Why are they different?Or is there any option to set?
by yimwai
Wed Sep 29, 2010 9:01 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to prevent rounding off in ds
Replies: 6
Views: 4886

but can anyone explain why the envrionment variable "apt_decimal_interm_round_mode" does't work.
I just select one record 0.7499 (decimal(13,4)) and put it in an decimal(13,2) column,the results are both 0.75 whether set the variable as "to nearest" or "discard rounding"
by yimwai
Tue Sep 28, 2010 10:02 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to prevent rounding off in ds
Replies: 6
Views: 4886

but no matter set the property , it also does round off
by yimwai
Tue Sep 28, 2010 9:08 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to prevent rounding off in ds
Replies: 6
Views: 4886

In the administration environment properties, I set "APT_DECIMAL_INTERM_ROUND_MOD" as discard and unpresentable fractional digits.
but seems nothing changed
by yimwai
Tue Sep 28, 2010 8:49 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to prevent rounding off in ds
Replies: 6
Views: 4886

How to prevent rounding off in ds

When the type of input column (or the source column )is decimal(13,4) but the output is decimal(13,2) ,the value will be rounded off . In DB2 enterprse stage,I can use 'cast' function to prevent rounding off,but how can i do in such as aggregate stage. Is there any setting option to avoid rounding o...
by yimwai
Thu Sep 02, 2010 6:43 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Data string '01/01/1900' does not match format %yyyy-%mm-%d
Replies: 5
Views: 4351

but why null value or default value can be '01/01/1900'
by yimwai
Wed Aug 25, 2010 9:28 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: locking table when update and insert in to the same table
Replies: 5
Views: 2993

I'm so sorry ,i think i described a wrong stuation .the fact is the two parts of result data has shared data.
and the upsert only do one action for one record and i aslo donnot know how to divide them in DE stage
by yimwai
Wed Aug 25, 2010 9:23 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: insert successful but update failure
Replies: 3
Views: 1240

thanks, I thought the input data can be used totally twice in insert and update.
by yimwai
Wed Aug 25, 2010 8:55 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: insert successful but update failure
Replies: 3
Views: 1240

insert successful but update failure

I user upsert mode user_defined update & insert the insert statement is INSERT INTO CC_CDW.M_CLT_REL (CLT_NBR, ALT_CLT_NBR, STR_DTE, END_DTE) VALUES (ORCHESTRATE.CLT_NBR, ORCHESTRATE.ALT_CLT_NBR, ORCHESTRATE.STR_DTE, ORCHESTRATE.END_DTE) the update statement is UPDATE CC_CDW.M_CLT_REL SET END_DT...
by yimwai
Wed Aug 25, 2010 7:22 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: field is not an Orchestrate insert field.
Replies: 1
Views: 2517

field is not an Orchestrate insert field.

when I do update and insert in one DB2 enterprise stage ,the error message is field `I_DTE' is not an Orchestrate insert field. my update and insert statement is as follow: UPDATE CC_CDW.F_CLT_ADR SET END_DTE = DATE('#I_DATE#')-1 DAY WHERE (CLT_ID = ORCHESTRATE.CLT_ID AND CTT_TYP_COD = ORCHESTRATE.C...