stage variable behavior

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
kjaouhari
Participant
Posts: 325
Joined: Thu Mar 16, 2006 10:22 am

stage variable behavior

Post by kjaouhari »

Hello guys,
In one of our jobs , I have different output for the same column. I am using a transformer stage for other reasons. If I propagate the column directly to the output I get the right result.
But If I propagate the input to a stage variable (witout any operation) and then pass the stage variable to the output I sometimes get a different result.

Any idea ?
Thanks
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

I would guess it depends on the data type you selected, or did not select, as well as the nullable properties and what specific version of DataStage you are using.

Which version are you using?

Please give a specific example showing the different data values and elaborate on the data types involved in source, stage var, and target.
Choose a job you love, and you will never have to work a day in your life. - Confucius
kjaouhari
Participant
Posts: 325
Joined: Thu Mar 16, 2006 10:22 am

Post by kjaouhari »

I have 100 columns and 200 stage variables , If I just keep half of them then the problem disapear. Is there any limitation on the number of stage variables we can use in one job ?
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

That doesn't sounds like too many, although there has to be a physical limit at some point.

Again, which version are you using?

Please give a specific example showing the different data values and elaborate on the data types involved in source, stage var, and target.

Have you opened a support case about this?
Choose a job you love, and you will never have to work a day in your life. - Confucius
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

What, exactly, does "different result" mean?
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 »

There is no limit on the number of stage variables.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kjaouhari
Participant
Posts: 325
Joined: Thu Mar 16, 2006 10:22 am

Post by kjaouhari »

hehe , sorry guys I didn't see you already replied !

Here is an example :

Input Col --> Output Col
Input Col --> Stage Variable --> Output Col2
(no transformation in stage variable))

Code: Select all

Input Col               Output Col                  Output Col2
NULL                        NULL                        NULL  
NULL                        NULL                        NULL  
NULL                        NULL                        NULL 
NULL                        NULL                        3 
NULL                        NULL                        NULL 
NULL                        NULL                        NULL 
Don't know where the '3' comes from.

Thanks.
kjaouhari
Participant
Posts: 325
Joined: Thu Mar 16, 2006 10:22 am

Post by kjaouhari »

The version we are using is 8.5 on unix. thanks
abc123
Premium Member
Premium Member
Posts: 605
Joined: Fri Aug 25, 2006 8:24 am

Post by abc123 »

What are the data types of Input Col, Output Col and Output Col2?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Or simply look in the RT_SCn directory in the project, without all those other steps.
:idea:
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
rkashyap
Premium Member
Premium Member
Posts: 532
Joined: Fri Dec 02, 2011 12:02 pm
Location: Richmond VA

Post by rkashyap »

One learns something new every day. :wink:
asorrell
Posts: 1707
Joined: Fri Apr 04, 2003 2:00 pm
Location: Colleyville, Texas

Post by asorrell »

Only on good days!
8)
Andy Sorrell
Certified DataStage Consultant
IBM Analytics Champion 2009 - 2020
Post Reply