Schema file.

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
GJ_Stage
Participant
Posts: 131
Joined: Mon Oct 27, 2008 6:59 am

Schema file.

Post by GJ_Stage »

How to read the below amount values using schema file.

Sample values:

-02.50
03.50

At present we using below entry

commission: decimal[5,2] {zoned, width=5};

But I am getting invalid number while reading 2nd value.

Please help me to solve this issue.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You can not read them with a schema file; you can only describe them with a schema file. I presume you are using a Sequential File stage. Is the format fixed-width fields (which you don't actually have) or delimited? Or is there only one field. Try reading the field as a VarChar data type (string[max=6] perhaps).
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