String Comparison

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Code: Select all

If Convert(field[1,1],'',field) = '' and len(field) = 6 
then "6 same chars" 
else "not 6 same chars"
akarsh
Participant
Posts: 51
Joined: Fri May 09, 2008 4:03 am
Location: Pune

Post by akarsh »

Sainath.Srinivasan wrote:

Code: Select all

If Convert(field[1,1],'',field) = '' and len(field) = 6 
then "6 same chars" 
else "not 6 same chars"

Thanks a lot Srini.. its working.. :D
Thanks,
Akarsh Kapoor
Post Reply