Page 1 of 1

Posted: Thu Sep 23, 2010 11:23 am
by chulett
How exactly are you setting USERSTATUS in the first job? FYI, you don't need that UserVariables stage, the Sequence can pass what you need directly.

Posted: Thu Sep 23, 2010 11:36 am
by India2000
chulett wrote:How exactly are you setting USERSTATUS in the first job? FYI, you don't need that UserVariables stage, the Sequence can pass what you need directly. ...
Do you mean in expression type userstatus? Its =job1.$userstatus

Posted: Thu Sep 23, 2010 12:01 pm
by chulett
No, that's how you pass it from Job1 to Job2 in the Sequence. I want to know what you are doing inside Job1 to set it.

Posted: Thu Sep 23, 2010 12:35 pm
by India2000
chulett wrote:No, that's how you pass it from Job1 to Job2 in the Sequence. I want to know what you are doing inside Job1 to set it. ...
.

Posted: Thu Sep 23, 2010 1:32 pm
by chulett
Please start a new post when you have new questions or issues.

Posted: Thu Sep 23, 2010 5:02 pm
by India2000
chulett wrote:No, that's how you pass it from Job1 to Job2 in the Sequence. I want to know what you are doing inside Job1 to set it. ...
I have a routine call DSuserstatus( Arg1)
Ans=Arg1 that returns the value of the first job. then I assign that value to the uservariable in the useractivity as Job1.$Userstastus and pass it to the job2 as a job parameter

Posted: Thu Sep 23, 2010 6:07 pm
by ray.wurlod
India2000 wrote:I have a routine call DSuserstatus( Arg1)
I doubt it. There's no such routine.

Posted: Fri Sep 24, 2010 2:38 am
by arunpramanik
India2000 wrote: I have a routine call DSuserstatus( Arg1)
Ans=Arg1 that returns the value of the first job. then I assign that value to the uservariable in the useractivity as Job1.$Userstastus and pass it to the job2 as a job parameter
Is this DSuserstatus( Arg1) a user defined routine? As mention by Ray there is no such in-bulit routine.

The easiest approach is -
Create a user define routine with a name something like "userstatus"
This routine should have Call DSSetUserStatus(Arg1)

Use/call this new user defined routine in the stage variable in the Job1

Posted: Fri Sep 24, 2010 2:46 pm
by ray.wurlod
:idea:
Tip: avoid naming your routines with names beginning with "DS".

Let this prefix be used only for out-of-the-box routines.

Posted: Fri Sep 24, 2010 6:07 pm
by sohasaid
I think this post might help:

http://dsxchange.com/viewtopic.php?t=13 ... a1d2cf1cd5

Regards.