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: 842
Location: Chicago
Points: 6237

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: 38984
Location: Denver, CO
Points: 199064

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

And?

_________________
-craig

"The main thing is to be satisfied with your work yourself. It's useless to have an audience happy if you are not happy." -Aaron Copland
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: 51848
Location: Sydney, Australia
Points: 281510

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 | Hobart | Brisbane
currently hiring: Sydney and Melbourne
Rate this response:  
Not yet rated
mandyli



Group memberships:
Premium Members

Joined: 26 May 2004
Posts: 842
Location: Chicago
Points: 6237

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