Search found 376 matches

by jerome_rajan
Fri Feb 22, 2013 4:43 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Rounding off issue with datastage
Replies: 12
Views: 18692

Ok, this should work

Code: Select all

Left(DecimalToString(col),Index(DecimalToString(col),".",1)+2)
by jerome_rajan
Fri Feb 22, 2013 4:35 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Issue with constraint in Transformer
Replies: 5
Views: 2383

Have you by any chance checked the 'Otherwise' checkbox under constraints?
by jerome_rajan
Fri Feb 22, 2013 4:33 am
Forum: General
Topic: Rename folder is still showing with previous name in direcor
Replies: 9
Views: 2438

Tools --> Options --> General Tab --> Refresh Enabled Checkbox
by jerome_rajan
Fri Feb 22, 2013 4:27 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Rounding off issue with datastage
Replies: 12
Views: 18692

This solution may not be optimal but will serve as a work-around while you search a better solution

Code: Select all

Left(col,Index(DecimalToString(col),".",1)+2)
I haven't actually implemented it. Do let me know if it works.

Note: You might want to add a StringToDecimal just in case
by jerome_rajan
Thu Feb 21, 2013 11:55 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: date conversion
Replies: 11
Views: 4456

Code: Select all

DateToString(StringToDate(col,"%mm/%dd/%yyyy"),"%yyyy-%mm-%dd") 
or just use

Code: Select all

StringToDate(col,"%mm/%dd/%yyyy")
assuming your datastage default format is yyyy-mm-dd
by jerome_rajan
Wed Feb 13, 2013 2:58 am
Forum: General
Topic: Reg the usage of parameter in parallel job
Replies: 4
Views: 2651

Parameters get resolved at runtime and not during compilation. If you have used a parameter that is not defined in the Job parameter list, then the job would, most likely, use the name 'AS IS' during runtime.
by jerome_rajan
Tue Feb 12, 2013 4:36 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Sparse Lookup
Replies: 5
Views: 3506

Sparse Lookup is a concept that's based on moving the processing of a join(lookup) to a database. Essentially, DataStage will send your rows in the stream link one by one to the reference DB and the join will be performed in the DB. Since join is a relational concept and does not apply to non-struct...
by jerome_rajan
Tue Feb 12, 2013 4:02 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Sparse Lookup
Replies: 5
Views: 3506

And only for DB2 and Oracle, I believe.
by jerome_rajan
Thu Jan 03, 2013 1:09 am
Forum: General
Topic: Not able to add datasource in a job
Replies: 4
Views: 2855

Is that a runtime error or is it something you see when you try to view data?
by jerome_rajan
Mon Dec 31, 2012 2:04 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Finding Max and Min on varchar column
Replies: 9
Views: 8220

Please post the expected and the actual outputs.
by jerome_rajan
Thu Dec 27, 2012 6:18 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Transformer as Source
Replies: 4
Views: 1640

Thank you. That explains it. Was only trying something Craig mentioned in a different post. Didn't observe that he posted it in the Server forum
by jerome_rajan
Thu Dec 27, 2012 5:18 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Transformer as Source
Replies: 4
Views: 1640

Transformer as Source

I tried creating a test job with a transformer at the source and also included a stage variable but the job refused to compile citing the reason as "No input schema available" or something of that sort. Am I doing something wrong?
by jerome_rajan
Wed Dec 26, 2012 11:28 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Call SP
Replies: 13
Views: 5214

Thanks Craig. That was very informative. I tried creating a test job with a transformer at the source and also included a stage variable but the job refused to compile citing the reason as "No input schema available" or something of that sort. guess I should not take this any further in th...
by jerome_rajan
Wed Dec 26, 2012 10:56 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Call SP
Replies: 13
Views: 5214

Craig,

Don't mean to hijack this post but can you please elaborate on
Create a stage variable (you don't need to use it for anything, it keeps the stage happy)
by jerome_rajan
Wed Dec 26, 2012 10:34 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Handling Decimals in RCP Job
Replies: 3
Views: 1349

Handling Decimals in RCP Job

Hi, We are trying to develop a generic job that can extract data from a set of fixed width files and load them into a DB2 database. The fixed width files contain a few amount fields that are represented without a decimal point. For e.g. 1000.23 is represented as 100023. The metadata of these files a...