Modify stage - null handling

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
miwinter
Participant
Posts: 396
Joined: Thu Jun 22, 2006 7:00 am
Location: England, UK

Modify stage - null handling

Post by miwinter »

Hi guys,

The Parallel Job Developer's Guide (page 28-4) shows an example of null handling for conversion of null to a char. I was looking to use this as I'm outputting to a seq file. However, if you use the example they recommend, you soon discover that there is no such conversion function as 'NullToValue' for the Modify. I know this exists in a Transform, but it doesn't appear to be valid for a Modify. When running the job, it returns:

Error parsing modify adapter: Error in binding: Unknown conversion: null_to_value
Expected destination field selector, got: ")"; input:


Looks like a documentation oversight to me...

Is there an alternative to this for the Modify, to achieve the same end? I've checked the available conversions in the same guide, from page 28-7 onward, but only 'null' and 'notnull' functions seem to exist.

Cheers
Mark Winter
<i>Nothing appeases a troubled mind more than <b>good</b> music</i>
balajisr
Charter Member
Charter Member
Posts: 785
Joined: Thu Jul 28, 2005 8:58 am

Post by balajisr »

You need to use handle_null() instead of NullToValue().
miwinter
Participant
Posts: 396
Joined: Thu Jun 22, 2006 7:00 am
Location: England, UK

Post by miwinter »

Thanks - dodgy documentation indeed then!
Mark Winter
<i>Nothing appeases a troubled mind more than <b>good</b> music</i>
jhmckeever
Premium Member
Premium Member
Posts: 301
Joined: Thu Jul 14, 2005 10:27 am
Location: Melbourne, Australia
Contact:

Post by jhmckeever »

The Modify operator is more fully (i.e. correctly!) documented in the Orchestrate Operators Reference.
<b>John McKeever</b>
Data Migrators
<b><a href="https://www.mettleci.com">MettleCI</a> - DevOps for DataStage</b>
<a href="http://www.datamigrators.com/"><img src="https://www.datamigrators.com/assets/im ... l.png"></a>
Post Reply