Mapping decimal fields

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
powerinmind2
Participant
Posts: 16
Joined: Wed Nov 26, 2003 5:42 am

Mapping decimal fields

Post by powerinmind2 »

Hi,
i have a problem. i have a seq file with a decimal field.

Ex. 1234567.1234

I want read this field. I have set Lenght to 7 and Scale to 4 but i cannot read this field!! I read this error: "Field "COL2" has import error and no default value; data: {1 2 3 4 5 6 7 . 1 2 3 4}"

Help me!

Massimiliano
1stpoint
Participant
Posts: 165
Joined: Thu Nov 13, 2003 2:10 pm
Contact:

Post by 1stpoint »

Try changing it to Varchar(50).
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

I'm curious, you show a job type of parallel but a platform of Windows? Your error looks like a PX error, but you can't run PX on Windows.
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
powerinmind2
Participant
Posts: 16
Joined: Wed Nov 26, 2003 5:42 am

Post by powerinmind2 »

1stpoint wrote:Try changing it to Varchar(50).
I cannot because i verify the field. If data into field are different type, i reject the record! :-(
powerinmind2
Participant
Posts: 16
Joined: Wed Nov 26, 2003 5:42 am

Post by powerinmind2 »

kcbland wrote:I'm curious, you show a job type of parallel but a platform of Windows? Your error looks like a PX error, but you can't run PX on Windows.
Sorry Ken!! The platform is UNIX!!! Have u an idea for my problem? I have set the options of the field but i have problem too!!
Teej
Participant
Posts: 677
Joined: Fri Aug 08, 2003 9:26 am
Location: USA

Re: Mapping decimal fields

Post by Teej »

powerinmind2 wrote:Hi,
i have a problem. i have a seq file with a decimal field.

Ex. 1234567.1234

I want read this field. I have set Lenght to 7 and Scale to 4 but i cannot read this field!! I read this error: "Field "COL2" has import error and no default value; data: {1 2 3 4 5 6 7 . 1 2 3 4}"
That's because it's a length of 12, not 7. Really 11, but 12 due to the fact that you're reading it from a flat file so must count the period.

-T.J.
Developer of DataStage Parallel Engine (Orchestrate).
Post Reply