Error in Modify stage

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
dspxlearn
Premium Member
Premium Member
Posts: 291
Joined: Sat Sep 10, 2005 1:26 am

Error in Modify stage

Post by dspxlearn »

Hi,

In the modify stage when i am handling the null value for a date column,
for the following expression
MKTPRC_DATE=NullToValue(MKTPRC_DATE,'2222-12-12')
i was getting the following error--

main_program: Errpr passing modify adapter: Error in binding : Unknown conversion : NullToValue
Expected destination field selector, got:")": input:
MKTPRC_DT:date=NullToValue(MKTPRC_DATE,'2222-12-12')

What might be the reason for the above Error.... :?:
Thanks and Regards!!
dspxlearn
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

Hi,
Please search for date conversion only in the EE forum for some answers.
Also in the docs.
Note that all the documented routines like NullToValue that are not named in small leters seperated by underscores are not available in the modify stage despite the docs.

IHTH,
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
richdhan
Premium Member
Premium Member
Posts: 364
Joined: Thu Feb 12, 2004 12:24 am

Post by richdhan »

Hi dspxlearn,

Use the SEARCH facility in this forum. It has been covered before. We had a discussion 2 days back.

Just scroll down the topics list and you will find a topic "About Modify Stage" where you will find what is the correct function to be used for Null Handling as well as a weblink for getting the orchestrate manuals which describes the functions that can be used in a modify stage.

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

Post by ray.wurlod »

That post also makes the point that there are some out and out errors in the Parallel Job Developer's Guide - you should not rely on it, particularly the chapter on Modify stage (which one guesses was written by someone who grew up with Transformer stages)
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
srikanthd1978
Charter Member
Charter Member
Posts: 38
Joined: Wed Mar 17, 2004 1:16 am
Location: USA

Re: Error in Modify stage

Post by srikanthd1978 »

Hi,

In the modify stage when i am handling the null value for a date column,
for the following expression
MKTPRC_DATE=NullToValue(MKTPRC_DATE,'2222-12-12')
i was getting the following error--

main_program: Errpr passing modify adapter: Error in binding : Unknown conversion : NullToValue
Expected destination field selector, got:")": input:
MKTPRC_DT:date=NullToValue(MKTPRC_DATE,'2222-12-12')

What might be the reason for the above Error.... :?:[/quote]

ANS:

The specification in the Modify Op would be NullToValue(_DATE,"2222-12-12") ..also i would handle the Null value as follows..

Date_Field:date = handle_null(Date_Field,"2222-12-12") in the specification...

Thanks,
dspxlearn
Premium Member
Premium Member
Posts: 291
Joined: Sat Sep 10, 2005 1:26 am

Post by dspxlearn »

Hi Srikanth,

I got the expected result...thanx for that.. :P
Thanks and Regards!!
dspxlearn
Post Reply