Stage variable not defined

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
aschand
Participant
Posts: 57
Joined: Thu Jan 03, 2008 9:28 pm

Stage variable not defined

Post by aschand »

Hi

Can any one please let me know what does this error mean and how i should rectify it.

This was the compilation error that i got.

Stage Variable vMTART: if isNull(lnkMatched.MATERIAL_TYPE) then ' '
else trim(lnkMatched.MATERIAL_TYPE)
Variable 'lnkMatched.MATERIAL_TYPE' not defined

thanks and Regards
aschand
gateleys
Premium Member
Premium Member
Posts: 992
Joined: Mon Aug 08, 2005 5:08 pm
Location: USA

Re: Stage variable not defined

Post by gateleys »

It just says that there is no column or link with that name.
Make sure that you have the input link 'lnkMatched' and the column name 'MATERIAL_TYPE' in that link.
gateleys
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

That's an input column / link name that it can't find, not a stage variable. Check your spelling.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Teej
Participant
Posts: 677
Joined: Fri Aug 08, 2003 9:26 am
Location: USA

Re: Stage variable not defined

Post by Teej »

Did you change your input link? Or did you just copy and paste old stage variables to a new job?

While DataStage can do a lot to reduce development time, it is still not quite smart enough to understand perfectly what is intended in both of the above situations (and others that I may have not thought about.)
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Re: Stage variable not defined

Post by ray.wurlod »

Teej wrote:(and others that I may have not thought about.)
Still thinking about getting it to make lunch, I'll warrant. :lol:
Do you get a banquet if you use a parallel job?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
aschand
Participant
Posts: 57
Joined: Thu Jan 03, 2008 9:28 pm

Post by aschand »

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

Post by ray.wurlod »

Please mark the thread as Resolved and make a post explaining how it was resolved.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Please mark the thread as Resolved and make a post explaining how it was resolved.
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