Modify Stage

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
mcs_murali83
Participant
Posts: 23
Joined: Sat Sep 29, 2007 6:05 am
Location: Datastage
Contact:

Modify Stage

Post by mcs_murali83 »

row generator---->modifystage----->target

In my row generator, i am having two columns as

name,id
xxxxx,12
yyyyy,13
zzzzzz,14

for name, my datatype is varchar
but in id, my datatype is varchar bcos i m unable to define the datatype as integer in row generator. so i have given as varchar for column 'id'.
using modify stage how can i convert the datatype from 'varchar' to 'integer' for the column 'id'.

Pls solve the issue.
Murali
dsedi
Participant
Posts: 220
Joined: Wed Jun 02, 2004 12:38 am

Post by dsedi »

in the row generator uyou will be able to specify the data type as integer!
also you can use some function like decimal_from_string to get the numeric output!

In the developers guide you will get a lot of info.

Edi
dsdev_123
Participant
Posts: 25
Joined: Tue Oct 09, 2007 9:13 pm

Post by dsdev_123 »

should be a defualt conversion. try giving integer on the target side. but i am not sure.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Professionalism Note
Please eschew SMS-style abbreviations. DSXchange is not a mobile phone; we expect a professional standard of writing.


The Row Generator can generate data in any of the simple data types, of which Integer is one.

(It can not generate vectors or subrecords, which are non-simple data types.)

Perhaps you would like to justify your assertion
mcs_murali83 wrote:i m unable to define the datatype as integer in row generator
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
siva.k82
Participant
Posts: 7
Joined: Thu Sep 14, 2006 10:57 pm
Location: marthalli
Contact:

Re: Modify Stage

Post by siva.k82 »

mcs_murali83 wrote:row generator---->modifystage----->target

In my row generator, i am having two columns as

name,id
xxxxx,12
yyyyy,13
zzzzzz,14

for name, my datatype is varchar
but in id, my datatype is varchar bcos i m unable to define the datatype as integer in row generator. so i have given as varchar for column 'id'.
using modify stage how can i convert the datatype from 'varchar' to 'integer' for the column 'id'.

Pls solve the issue.
i will give small example of type convertion please find below type convertion function
Column_Name=type_conversion('Column_Name')
the same example you need to specify in the stage specification.......propertybox.
sivaram
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

I think that mcs_murali wanted the exact function to use, not the syntax of a Specification property. Further, I am fairly sure it was wanted a month ago.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply