column import stage error=must be of type string or raw

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
dsisbank
Premium Member
Premium Member
Posts: 50
Joined: Fri Aug 11, 2006 4:53 am

column import stage error=must be of type string or raw

Post by dsisbank »

Hi,
My job is like above
Oracle source stage-->column import st--->seq. file.

I have a column data type varchar2(4000).i store in it like that data
"0001","john ","istanbul"
and i want to separate this column like that
id name city
0001 john istanbul

for this,i use column import stage but i have error above

""column_import_1: Import field "DATA" must be of type string or raw. [new-impexp/field_import.C:245]""

my source is already varchar,how can i solve this?
bcarlson
Premium Member
Premium Member
Posts: 772
Joined: Fri Oct 01, 2004 3:06 pm
Location: Minnesota

Post by bcarlson »

I haven't used Oracle with DataStage. Perhaps DataStage doesn't like the incoming datatype of 'varchar2'. Could this be cast as a different string type in your query?

Just a guess...

Brad.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Have you tried getting rid of the column import stage and directly loading to the sequential file with quote character set to none and delimiter set to space ?
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Or use a Transformer stage and Field() functions to parse it?

As you've seen the Column Import stage is fairly particular about the input column you ask it to parse.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
dsisbank
Premium Member
Premium Member
Posts: 50
Joined: Fri Aug 11, 2006 4:53 am

Post by dsisbank »

i use transformer stage before column import stage,and convert the data from stringtoraw using transformer function.Column import stage worked well.problem is solved.
and also second way ,field() function helps to be solved
thanks everbody answered
Post Reply