but this is a compliation error rite?sb_akarmarkar wrote:Look like empty string... Try to add Trim(ColumnName) <> ''...
Thanks,
Anupam
Search found 131 matches
- Fri Dec 08, 2006 6:03 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: compilation error - transformer stage
- Replies: 18
- Views: 7127
- Fri Dec 08, 2006 4:43 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: compilation error - transformer stage
- Replies: 18
- Views: 7127
- Fri Dec 08, 2006 3:18 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: compilation error - transformer stage
- Replies: 18
- Views: 7127
- Fri Dec 08, 2006 1:41 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: compilation error - transformer stage
- Replies: 18
- Views: 7127
Re: compilation error - transformer stage
I use this derivation in the transformer stage : If i/p_column1 = "A" Then IF IsNotNull((ip_column2)[1,7]) THEN ip_column2[1,7] ELSE SetNull() Else SetNull() The above is absolutely wrong. It can be a 'If Then Else' statement and cannot be a 'If Then If Then Else Else' statement. I mean, ...
- Fri Dec 08, 2006 1:01 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: compilation error - transformer stage
- Replies: 18
- Views: 7127
compilation error - transformer stage
I use this derivation in the transformer stage , i am getting the compliation error: If i/p_column1 = "A" Then IF IsNotNull((ip_column2)[1,7]) THEN ip_column2[1,7] ELSE SetNull() Else SetNull() when i used If i/p_column1 = "A" Then ip_column2[1,7] ELSE SetNull() it worked with ou...
- Thu Dec 07, 2006 6:12 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Left padding
- Replies: 3
- Views: 1881
Left padding
hi,
I want to know how 0s are left padded to a string.
i used this function - padstring(sting,"0",10) but it does a right padding.
I tried with -10 for a left pad, even then it is not working... can anyone help me on this?
I want to know how 0s are left padded to a string.
i used this function - padstring(sting,"0",10) but it does a right padding.
I tried with -10 for a left pad, even then it is not working... can anyone help me on this?
- Thu Dec 07, 2006 2:50 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Transformer stage - constraint
- Replies: 4
- Views: 1903
thanks for ur reply. i understnd that a new i/p column value will be outputted only if the constraint is specified for that. my doubt is, if there is some new i/p column value coming in , for eg., V for some 20 records, will datastage read those records are not. my concern is - in any case, the data...
- Wed Dec 06, 2006 10:12 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Transformer stage - constraint
- Replies: 4
- Views: 1903
Transformer stage - constraint
Hi, I have a job in which i read a source file which has about 100 records and this is passed to a transformer.in the transformer, based on the i/p column value the row has to be moved to the appropriate datasets. In the above job, i give two constraints on the transformer stage, if i/p column =a, d...
- Tue Dec 05, 2006 1:51 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: how to abort the job based on the input
- Replies: 8
- Views: 2786
i have given two links from transformer. constraint for link1- inputcolumn=1,no abort constraint for link2- inputcolumn<>1,abort after 1 row but as soon as i trigger the job, one record for each link is loaded and the job abortes with fatal error - Job aborting due to row limit being reached on outp...
- Tue Dec 05, 2006 1:43 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: how to abort the job based on the input
- Replies: 8
- Views: 2786
- Tue Dec 05, 2006 1:08 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: how to abort the job based on the input
- Replies: 8
- Views: 2786
how to abort the job based on the input
Hi, I want to know is there anyway i can abort a job based on the input value... for eg .. if coulmn1<>a, i want the process to be aborted. is there any function which i can use in transformer stage? also i want a message to be displayed, the description for the abortion process - like "column1...
- Sun Dec 03, 2006 10:34 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: xml output - not writing to file
- Replies: 10
- Views: 3625
- Sun Dec 03, 2006 10:04 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: xml output - not writing to file
- Replies: 10
- Views: 3625
xml output - not writing to file
Hi all
I am using the xml ouput stage in which i am writing the output to a file by specifying its path.but the file is not created in the specified path..
can any one throw some light on y the file is not created?
I am using the xml ouput stage in which i am writing the output to a file by specifying its path.but the file is not created in the specified path..
can any one throw some light on y the file is not created?
- Fri Dec 01, 2006 1:15 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Target file layout - Dynamic change
- Replies: 3
- Views: 1147
srop /keep columns conditionally
is there any stage which drops / keeps columns based on a condition?
eg.,
column1 =1, drop input column ...
or isnull(i/p column), drop it
like this?
We can use the modify stage for keep/drop columns, but i want to know is that possible to do the same based on some condtion ...
eg.,
column1 =1, drop input column ...
or isnull(i/p column), drop it
like this?
We can use the modify stage for keep/drop columns, but i want to know is that possible to do the same based on some condtion ...
- Thu Nov 30, 2006 10:00 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Target file layout - Dynamic change
- Replies: 3
- Views: 1147
Target file layout - Dynamic change
Hi all, I am creating a job, in which i am using a sequential file as target file. My requirement is that the structure of the file, i mean the no. of the columns columns should change dynamically, based on a single value from the input.. for eg., if this is the i/p : 100,A1,234567 120,B1,123456789,...