integer to string

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
dsproj2003
Participant
Posts: 21
Joined: Wed Oct 01, 2003 11:53 am

integer to string

Post by dsproj2003 »

What is the simplest way of converting smallint/integer to string?

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

Post by ray.wurlod »

In a Transformer stage, do nothing!
On the input link declare its data type as SmallInt/Integer.
On the output link declare its data type as Char/VarChar.
This works because the DataStage Engine is flexible about data types internally.

Ray Wurlod
Education and Consulting Services
ABN 57 092 448 518
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

There is no conversion required by DataStage Server. If the source column has metadata as smallint and the target column has metdata of string, simply map the column over.

Kenneth Bland
Teej
Participant
Posts: 677
Joined: Fri Aug 08, 2003 9:26 am
Location: USA

Post by Teej »

quote:Originally posted by kcbland
[br]There is no conversion required by DataStage Server. If the source column has metadata as smallint and the target column has metdata of string, simply map the column over.


The same is true for DataStage PX.

-T.J.


* * *

... now if this can make breakfast, my life is complete.
Post Reply