Doubt in trim function

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
swathi Singamareddygari
Participant
Posts: 48
Joined: Fri Feb 29, 2008 1:09 am
Location: Bangalore

Doubt in trim function

Post by swathi Singamareddygari »

Hi all,

Can any one please tell me the deifference between below two trim syntaxes

1.Trim(DSLink2.Date,'0','%R%')
2.Trim(DSLink2.Date,'0','R')

I creaeted the sample job to check these two syntaxes but i didnt get the difference in using with and without % syntax.

Thanks

Swathi
Thanks&Regards
S.Swathi
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The first syntax is, essentially, invalid and so will default the third argument (to "B" or "T" - I can't remember which).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
swathi Singamareddygari
Participant
Posts: 48
Joined: Fri Feb 29, 2008 1:09 am
Location: Bangalore

Post by swathi Singamareddygari »

ray.wurlod wrote:The first syntax is, essentially, invalid and so will default the third argument (to "B" or "T" - I can't remember which). ...

Hi ray ,

first statement is not invalid its giving the same result as of the second one.but i am not getting the differencebetween those two.

Thanks
Thanks&Regards
S.Swathi
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Prove to me that it's valid, with a reference to a manual.

That it works is not proof - as I noted, invalid arguments can be ignored and take default values.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply