Change data from source file to target?

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Or use pxEreplace() function, documented on DSXchange.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Copy/paste characterset issue. Replace the "-" with one typed on your keyboard. And there's no need for a stage variable to do this.
-craig

"You can never have too many knives" -- Logan Nine Fingers
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Assuming 'Tax_Rate_area' is the correct field, check for spaces or other vaules that would cause the check to fail. Perhaps a trim is in order?
-craig

"You can never have too many knives" -- Logan Nine Fingers
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Already addressed that issue. Type it in yourself, do not copy/paste from the post that suggested it... as that "dash" and your dash are different characters.
-craig

"You can never have too many knives" -- Logan Nine Fingers
marpadga18
Premium Member
Premium Member
Posts: 96
Joined: Fri Aug 20, 2010 8:51 am

Post by marpadga18 »

chulett wrote:Already addressed that issue. Type it in yourself, do not copy/paste from the post that suggested it... as that "dash" and your dash are different characters. ...
hi craig

I got it u r really genius thanks for quick reply and help!!!!
Thanks,
M
Ravi.K
Participant
Posts: 209
Joined: Sat Nov 20, 2010 11:33 pm
Location: Bangalore

Post by Ravi.K »

chulett wrote:Copy/paste characterset issue. Replace the "-" with one typed on your keyboard. And there's no need for a stage variable to do this. ...
I agree with you to write in column derivation instead of Stage variable. I was habituated to write stage variables for new derivations.

Please suggest any performance implications is there using stage variables.

Thanks.
Cheers
Ravi K
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Any 'performance implications' should be for the positive if they are leveraged properly. There isn't in this case, either way, it just doesn't show a good understanding of how to leverage them. Typical use would be for derivations that you need to leverage multiple times in the stage - derive it once in the stage variable, reference it multiple times.

There are other uses, of course, for example self-documenting a complex derivation either by judicious naming of stage variables and/or breaking the derivation up into bite-sized (and well named) chunks that make more sense when put back together.

And of course, a poorly written derivation - be it in a stage variable or not - can certainly have performance implications. And not of the good kind. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
Ravi.K
Participant
Posts: 209
Joined: Sat Nov 20, 2010 11:33 pm
Location: Bangalore

Post by Ravi.K »

Thanks Craig for the detailed explanation. 8)
Cheers
Ravi K
Post Reply