Is there a lower case function in DataStage?

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
techiexavier
Participant
Posts: 39
Joined: Tue Feb 28, 2012 12:59 pm
Location: Chennai

Is there a lower case function in DataStage?

Post by techiexavier »

Hi All,

My job design is as below,

Oracle connector --> Transformer --> DataSet

Id Varchar(10)

I have requirement where if get records with "id" field in lower case i need to drop those records. Please let me know how can i perform that in DS.

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

Post by ray.wurlod »

Code: Select all

Downcase()
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 »

To expand on that, compare the field value with a downcase'd version of the same field. If they are equal then you know it came in all lowercase.
-craig

"You can never have too many knives" -- Logan Nine Fingers
asorrell
Posts: 1707
Joined: Fri Apr 04, 2003 2:00 pm
Location: Colleyville, Texas

Post by asorrell »

Ray has obviously decided to limit his responses to one word replies so he can hit more topics and raise his post count...

:-)
Andy Sorrell
Certified DataStage Consultant
IBM Analytics Champion 2009 - 2020
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

I answered the question in the subject line. :)
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
techiexavier
Participant
Posts: 39
Joined: Tue Feb 28, 2012 12:59 pm
Location: Chennai

Is there a Islower case function in DataStage?

Post by techiexavier »

Is there a Islower case function in DataStage? - Updating the subject line :) - Sorry this should be the subject line. that is the typo error.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

No... but I've already explained how to solve your problem. And all of the functions are documented, so there's really no need to ask what might be available.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply