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
dsuser91
Participant
Posts: 17
Joined: Fri Aug 21, 2009 8:11 am

sequential file

Post by dsuser91 »

When we are writing data into sequential file

Do we need to check all columns for Null value?

IF ISNULL(DSLink.xxxx) THEN '' ELSE DSLink.xxxx

When i view the sequential data i am seeing NULL in some column value?


Thanks in advance
major
Premium Member
Premium Member
Posts: 167
Joined: Mon Nov 26, 2007 12:21 am

Post by major »

Probably , your peers might have used the Null field value property to populate "NULL" for null values.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Short answer is "no". But you DO need to specify how NULL will be represented in the text file. This can be done with a global property on the Format tab or differently for individual columns.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
dsuser91
Participant
Posts: 17
Joined: Fri Aug 21, 2009 8:11 am

Post by dsuser91 »

sequential file-->Format-->Field defaults-->Null field value = ''

o/p:

Still i am ending up with NULL in some column values?

Did i miss any thing?

How we can check null for individual columns
narasimha
Charter Member
Charter Member
Posts: 1236
Joined: Fri Oct 22, 2004 8:59 am
Location: Staten Island, NY

Post by narasimha »

How would you want the in coming null to look in the sequential file. Based on your need change the transformation to reflect for individual columns or at a global level

IF ISNULL(DSLink.xxxx) THEN 'How you want it look in your sequential file' ELSE DSLink.xxxx.
Narasimha Kade

Finding answers is simple, all you need to do is come up with the correct questions.
dsuser91
Participant
Posts: 17
Joined: Fri Aug 21, 2009 8:11 am

Post by dsuser91 »

"How you want it look in your sequential file " what the best practice?

What does it mean by at global level? How should i set it?


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

Post by ray.wurlod »

What I mean by "at global level" is "for all fields in the record structure". This is set on the Format tab.
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