DSXchange: DataStage and IBM Websphere Data Integration Forum
View next topic
View previous topic
Add To Favorites
Author Message
mandyli



Group memberships:
Premium Members

Joined: 26 May 2004
Posts: 831
Location: Chicago
Points: 6124

Post Posted: Sat Jul 07, 2012 4:54 pm Reply with quote    Back to top    

DataStage® Release: 8x
Job Type: Parallel
OS: Unix
Hi

I would like to convert datatype Varchar to Integer.


Thanks for your help.

Man
chulett

Premium Poster


since January 2006

Group memberships:
Premium Members, Inner Circle, Server to Parallel Transition Group

Joined: 12 Nov 2002
Posts: 38219
Location: Denver, CO
Points: 194976

Post Posted: Sat Jul 07, 2012 11:06 pm Reply with quote    Back to top    

And?

_________________
-craig

Mama always told me not to look into the eyes of the sun
But mama, that's where the fun is...
Rate this response:  
Not yet rated
ray.wurlod

Premium Poster
Participant

Group memberships:
Premium Members, Inner Circle, Australia Usergroup, Server to Parallel Transition Group

Joined: 23 Oct 2002
Posts: 51335
Location: Canberra, Australia
Points: 278752

Post Posted: Sun Jul 08, 2012 1:42 am Reply with quote    Back to top    

The first thing to observe is that not every VarChar can be converted to Integer, so you probably need to use an IsValid() function to test whether the string you have is a valid integer. That done, ...

_________________
RXP Services Ltd
Melbourne | Canberra | Sydney | Hong Kong
currently hiring: Sydney and Melbourne
Rate this response:  
Not yet rated
mandyli



Group memberships:
Premium Members

Joined: 26 May 2004
Posts: 831
Location: Chicago
Points: 6124

Post Posted: Sun Jul 08, 2012 2:32 pm Reply with quote    Back to top    

Thanks .

I will do it.

Thanks
Man
Rate this response:  
Not yet rated
Display posts from previous:       

Add To Favorites
View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2002 phpBB Group
Theme & Graphics by Daz :: Portal by Smartor
All times are GMT - 6 Hours