IsNull on stage variables

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
pimmit22043
Participant
Posts: 38
Joined: Thu Jul 26, 2007 6:11 am

IsNull on stage variables

Post by pimmit22043 »

i'm trying to use the IsNull on the stage variables ,it is giving the compiling error,

is there any thing i can use to do the isNull on stage variables.





Thanks
-RK
JoshGeorge
Participant
Posts: 612
Joined: Thu May 03, 2007 4:59 am
Location: Melbourne

Post by JoshGeorge »

You should be able to use IsNull() on stage variables. Post the compilation error you are getting, that might say more to investigate.
Joshy George
<a href="http://www.linkedin.com/in/joshygeorge1" ><img src="http://www.linkedin.com/img/webpromo/bt ... _80x15.gif" width="80" height="15" border="0"></a>
krishobby
Participant
Posts: 20
Joined: Sun Dec 04, 2005 3:23 pm

Re: IsNull on stage variables

Post by krishobby »

If you have a stage variable var1 you can have an expression like this,

If IsNull(col1) then ...

But you have another stage variable var2 you [u]cannot [/u]have an expression like

If IsNull(var1)
JoshGeorge
Participant
Posts: 612
Joined: Thu May 03, 2007 4:59 am
Location: Melbourne

Post by JoshGeorge »

Righlty said. You can use IsNull() or IsNotNull(), say any Null Handling functions in a stage variable. But the input to these functions cannot be a stage variable, regardless of where you are using these funtions.
Joshy George
<a href="http://www.linkedin.com/in/joshygeorge1" ><img src="http://www.linkedin.com/img/webpromo/bt ... _80x15.gif" width="80" height="15" border="0"></a>
Post Reply