if then else issue

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

Minhajuddin
Participant
Posts: 467
Joined: Tue Mar 20, 2007 6:36 am
Location: Chennai
Contact:

Post by Minhajuddin »

ray.wurlod wrote:Trim() can never generate "". ...
Hi Ray,

I have used this a lot in Server Jobs. And Trim(col) gives me the same as Convert(" ","",col).

Does it behave differently in Parallel jobs?

Let me try and get back to you.

And thanks for cautioning us on this.
Minhajuddin

<a href="http://feeds.feedburner.com/~r/MyExperi ... ~6/2"><img src="http://feeds.feedburner.com/MyExperienc ... lrow.3.gif" alt="My experiences with this DLROW" border="0"></a>
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Try it with this value, and post your response.

Code: Select all

"   FREDDIE               MERCURY     "
It is NOT the same result as Convert().
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 »

Ray, you may not be an FBG - but you make the rock'n world go round. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
samsuf2002
Premium Member
Premium Member
Posts: 397
Joined: Wed Apr 12, 2006 2:28 pm
Location: Tennesse

Post by samsuf2002 »

I tried using convert funtion to make spaces as empty but now it is giving me as 0 in col B , i found that RCP in enabled is that the issue? not sure :?:
hi sam here
Post Reply