Search found 19 matches

by juancho
Thu Aug 19, 2010 1:06 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Execute Awk with pound sign
Replies: 6
Views: 6111

Anbu, The Execute command those not return any error. The Sequencer fails later because the awk result is not the one expected. Mi intention is to comment a Configuration file with general information of the content, fields, etc. But comments should not be considered when processing. For example: #-...
by juancho
Mon Jan 18, 2010 6:36 am
Forum: General
Topic: Other IBM Products
Replies: 1
Views: 1434

Other IBM Products

Hello! I have found out that my company has a global agreement with IBM, and it seems to be that it includes "unlimited" licenses for every IBM product that we can get our hand on. We are already using DataStage (7.5.1) but i have heard about QualityStage, ProfileStage, etc... What IBM pro...
by juancho
Fri Sep 25, 2009 10:01 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Schema files, how to define a KEY column?
Replies: 1
Views: 1318

Schema files, how to define a KEY column?

Hello!

Pretty much everything i need is that, what is the sintaxis? its not in the documentation and i dont know where to look for that.

Generating a DataSet and then using DataSet manager to see the schema for it shows no help.

Thanks!
by juancho
Tue Sep 22, 2009 7:07 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Modify Stage Issues
Replies: 3
Views: 2065

Hey ray, thanks for showing i have at least someone reading this :) for point 1. In the "how to become a Modify zen master" blog it says you can have a null modify parameter... at least in my version, 7.5.2 that is not working... maybe i was wondering someone who got around to this, like s...
by juancho
Thu Sep 17, 2009 8:21 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Modify Stage Issues
Replies: 3
Views: 2065

Modify Stage Issues

Hello! I have developed a set of jobs that use Modify stage using a parameter to load the Specification. After reading about it online, in the manual and also the blog post about "How to become a Modify Stage Zen Master" i still have two doubts. 1- What if i dont need to use the modify sta...
by juancho
Sat Aug 15, 2009 4:26 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Modify Stage Decimal conversion
Replies: 10
Views: 12150

Hmmm... nobody should HAVE to use only a Modify stage, as Ray would say - Resist Stupid Requirements! And I think Div() is only valid in a Transformer. If your only recourse is to divide the number by 100 because a lack of delimiters then I believe your new limitation will be that you'll HAVE to do...
by juancho
Sat Aug 15, 2009 2:28 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Modify Stage Decimal conversion
Replies: 10
Views: 12150

I don't believe you can manipulate data in the Modify stage, only drop/keep columns and convert data types. You'd need a Transformer to do the division, as far as I know, your syntax would be fine there. Or you can try the Div() function. My limitation is that i HAVE to use only modify stage, ill t...
by juancho
Sat Aug 15, 2009 11:20 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Modify Stage Decimal conversion
Replies: 10
Views: 12150

chulett wrote:Couldn't you just divide it by 100? :? ...
That is a great idea that i tried to implement in the modify stage but it seems not doable.

"<field> / 100" throws a syntax error... do you know the correct syntax?
by juancho
Sat Aug 15, 2009 6:22 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Modify Stage Decimal conversion
Replies: 10
Views: 12150

Re: Modify Stage Decimal conversion

If you're trying to convert a varchar to decimal in Modify stage you need to use the following function: decimal_from_string decimal_col:decimal = decimal_from_string [ceil] (source_col) For more information on this function you can refer Parallel job developer guide. Hope that Helps. -Hiral I am t...
by juancho
Fri Aug 14, 2009 1:11 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Modify Stage Decimal conversion
Replies: 10
Views: 12150

Modify Stage Decimal conversion

Hello!

Is there a way to convert, using modify stage, a string field with the following data:

12034

to decimal 5,2? that is, to 120,34

the key here is using only modify stage because i need to pass the conversion using parameter (i am using one job for several files)

Thanks!
by juancho
Fri Aug 14, 2009 11:55 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: RCP and adding new columns to flow
Replies: 18
Views: 12823

Sainath.Srinivasan wrote:Insert one extra dummy column in the column generator stage and drop it in the modify.
But i wont be able to fill that column with the current date, am i right?
by juancho
Fri Aug 14, 2009 11:39 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Schema File, Fixed Width Files and Decimal data type
Replies: 1
Views: 2343

Schema File, Fixed Width Files and Decimal data type

Hello! I have the following example from a fixed width file i need to read. I would very much like to do it using schema files, since i want to have only ONE job to process multiple files that are similar but have different metadata. Les suppose i have the following data i want to import: JUANCHO120...
by juancho
Thu Aug 13, 2009 10:43 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: RCP and adding new columns to flow
Replies: 18
Views: 12823

I think the only solution is to process the file as a whole huge record and then add another column (having the current date) at the transformer level, this should be done in a first job, the second job should use RCP and i will already have [date]<separator>[original data], hence i will be able to ...