error

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
adams06
Participant
Posts: 92
Joined: Sun Mar 12, 2006 3:00 pm

error

Post by adams06 »

Hi All,

i am getting this following error message

DataStage Job 542 Phantom 27961
Program "JOB.321231104.DT.1405157533.TRANS1": Line 137, Nonnumeric data when numeric required. Zero used.
DataStage Phantom Finished

can some one let me know how to resolve this.

Thanks in advance
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

You have a math expression somewhere that is not allowing for character data.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Need to know your job design. What exactly are you doing?
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
kris007
Charter Member
Charter Member
Posts: 1102
Joined: Tue Jan 24, 2006 5:38 pm
Location: Riverside, RI

Post by kris007 »

The error says it all. You are trying to enter non-numeric data where it is expecting numeric data. Look into your Transformer stage and the derivations you are using in it.
Kris

Where's the "Any" key?-Homer Simpson
adams06
Participant
Posts: 92
Joined: Sun Mar 12, 2006 3:00 pm

error

Post by adams06 »

I have one record i.e A1 which is creating problem.

version

A1
00
01
07

how can we convert this nonnumeric data(A1) into numeric.

thanks in advance.

DSguru2B wrote:Need to know your job design. What exactly are you doing?
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Dont change it. Specify that column as varchar. Or you will lose that data.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
adams06
Participant
Posts: 92
Joined: Sun Mar 12, 2006 3:00 pm

error

Post by adams06 »

The column is defined as varchar only.
DSguru2B wrote:Dont change it. Specify that column as varchar. Or you will lose that data.
kris007
Charter Member
Charter Member
Posts: 1102
Joined: Tue Jan 24, 2006 5:38 pm
Location: Riverside, RI

Post by kris007 »

Is the datatype set to Varchar in Target? Are you sure?
Kris

Where's the "Any" key?-Homer Simpson
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Ok. This will get us no where. Did you pay attention to what Ken had asked?
Also, i am still waiting for your job design and what exactly are you doing in it.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
adams06
Participant
Posts: 92
Joined: Sun Mar 12, 2006 3:00 pm

error

Post by adams06 »

Hi DSGuru,

source-->transformer1--->sort--->transformer2-->hashfile

i am doing a sort on version.

Thanks in advance

DSguru2B wrote:Ok. This will get us no where. Did you pay attention to what Ken had asked?
Also, i am still waiting for your job design and what exactly are you doing in it.
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

The sort stage expects to do a numeric sort if a column has a data type of numeric and is one of the sort columns. Tell me, what number do you want A1 changed into?
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Yes. The sort stage is expecting a numberic value and bumps on 'A1' which we both know is not numeric. Now either you need to fix your incoming data or have to go for a character sort, which might be different from what you are actually looking for , so, as Ken is asking, specify the value of A1 and handle that.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
sb_akarmarkar
Participant
Posts: 232
Joined: Fri Sep 30, 2005 4:52 am
Contact:

Re: error

Post by sb_akarmarkar »

[quote="adams06"]
how can we convert this nonnumeric data(A1) into numeric.
/quote]

I did not get what numeric value you want for (A1)...
But you can use NUM() to check whether come value is numeric or alphabatic
for numeric it will return 1 and for alphbatic 0..
Give the condition like if NUM(Value)=0 then @NULL else value...

Thanks,
Anupam
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Re: error

Post by kumar_s »

adams06 wrote:The column is defined as varchar only.
DSguru2B wrote:Dont change it. Specify that column as varchar. Or you will lose that data.
Why is it complaining for Numeric if it is defined as Varchar?
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

I dont think it is throughout, maybe at the source, but it has to be defined varchar at both the input and output of the sort stage.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply