regarding uservariable activity

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

vijaykumar
Participant
Posts: 228
Joined: Tue Oct 03, 2006 7:08 pm

Post by vijaykumar »

hi gurus,
thanks very much.
user variable activity------>job1 nested conditional activity----->job1
user variable activity------>job2 ------>job2

i want to set the value of the variable status as 1.
how can i set this.
bz as soon as i give the nested condition as User Variable Activity.Status=1.
it says that USER VARIABLE ACTIVITY.STATUS IS NOT DEFINE.
plz gurus help me.

cheers;
vijay
narasimha
Charter Member
Charter Member
Posts: 1236
Joined: Fri Oct 22, 2004 8:59 am
Location: Staten Island, NY

Post by narasimha »

vijaykumar wrote:i want to set the value of the variable status as 1.
how can i set this.
bz as soon as i give the nested condition as User Variable Activity.Status=1.
it says that USER VARIABLE ACTIVITY.STATUS IS NOT DEFINE.
On what basis do you want to set the value for the variable 'status' as 1 ?
You need to tell everybody that.
If you want it to be 1 all the time, hard code it to 1, in the Expression for the variable 'status'. (In your UserVariablesActivity)
Narasimha Kade

Finding answers is simple, all you need to do is come up with the correct questions.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

What does 'status' mean? how are you getting that value? This should have been asked in the very begining.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
vijaykumar
Participant
Posts: 228
Joined: Tue Oct 03, 2006 7:08 pm

Post by vijaykumar »

hi,
what does status mean, how do we get value.
actually i thought status is activity variable.

but plz help me in understanding abt the variable status, guru said to hard cord the value of status, how can i hard cord.
i know that these questions should be asked earlier itself, i was late in analyzing, i would appreciate if any guru helps me out.

cheers;
vijay
narasimha
Charter Member
Charter Member
Posts: 1236
Joined: Fri Oct 22, 2004 8:59 am
Location: Staten Island, NY

Post by narasimha »

Buddy, you are getting confused and confusing everybody else too.
Like Ray and Craig said you might be looking for something else and you are asking for something else.

User_Variables_Activity is different from UserStatus.
The variable name what you choose 'status' added to the confusion.

Not rather than putting forth your design.
Let everybody know what you want to achieve? We can go ahead from there.
Narasimha Kade

Finding answers is simple, all you need to do is come up with the correct questions.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Btw is this your job desing?
user variable activity------>job1 nested conditional activity----->job1
user variable activity------>job2 ------>job2
Or you would like to align it, as others did for you.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Activity variables - of any kind - are only accessible from upstream activities - that is activities to which the current activity is connected by a series of links.

But - if I read your requirement correctly - you don't need a User Variables activity at all. Your "status" could - should - be a job parameter. The Nested Condition activity can test this and, on the basis of its value, decide whether to execute job1 or job2.
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