Error inserting null value to fixed width seq 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
dsguy
Participant
Posts: 34
Joined: Thu Mar 09, 2006 10:37 am

Error inserting null value to fixed width seq file

Post by dsguy »

Hi All

I am getting the following error while inserting null values in to a fixed width seq file .I gave null feild value as *.The data type for the column is Char.
Error
------
Sequential_File_20: Error when checking operator: "record_length=fixed" (no length given) and record field format is variable-length. The first variable-length field is "MEME_CK".

Thanks,
Girish
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The Null Field Value in a fixed width file must have the same length as any non-null data in that field. After all, that's what fixed width means - every value in the column - including the representation of null - has the same width.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
johnthomas
Participant
Posts: 56
Joined: Mon Oct 16, 2006 7:32 am

Post by johnthomas »

Did you define the fields as varchar ???
JT
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

You need to give * character to the length of the field.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
us1aslam1us
Charter Member
Charter Member
Posts: 822
Joined: Sat Sep 17, 2005 5:25 pm
Location: USA

Post by us1aslam1us »

Hi,

I don't know where you are working but to my memory(when working at Health Insurance Cmpny) that MEME_CK used to be Member contrive key and data type beng integer, So out of curiosity could you tell us Is this field having Null values and also try ray's suggestion if it is true.

Sam
ajith
Participant
Posts: 86
Joined: Thu Nov 10, 2005 11:10 pm

Post by ajith »

In the column definition tab of the output, go to the relevant key column, do an edit row. From the properties set the field width and padchar property accordingly. This will solve the problem.

I am wondering why is this happening to a char column , anyways try redoing the stage, That is how I solved it when I encountered this with a char column.

thanks,
Ajith
Post Reply