varchar to char issue in fixed length target sequential 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
HemaV
Participant
Posts: 63
Joined: Wed Jan 09, 2008 1:38 am
Location: Bangalore

varchar to char issue in fixed length target sequential file

Post by HemaV »

Hi All,

My source is coming from oracle database and my target is Fixed length sequential file.

my source column col1 is varchar(60) and target column will be char(60).
i'm getting NULL values from source and my job is aborting.

In SEQ stage, under format tab i gave in NULL FIELD VALUE=' ' in Field defaults. Record level earlier it was FIXED but not i removed that option also. still records are getting reject.

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

Post by ray.wurlod »

For a fixed-width format sequential file, the Null Field Value must have the same number of characters as is specfied as the field width.

And you should (can) not have VarChar data types in a fixed-width file.
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