Does anyone know how you set the UserStatus from a Parallel Job.
I have a routine that calls DSSetUserStatus(Arg1). I can call this from a Server job no problem. However when I use a BASIC transformer in a PX job to call the same routine, it doesn't work.
Is there another way to set the UserStatus?
Cheers
Setting $UserStatus from a Parallel Job
Moderators: chulett, rschirm, roy
Re:Setting $UserStatus from a Parallel Job
You cannot call routines from a parallel job because PX does not understand the BASIC language that routines use. You will have to write the logic through a Build stage using C language.
Thanks cpratima, so you're saying that I need write some c++ code.
I have been looking at the Parallel Job Advanced Developers Guide, is this the best one for showing me what to do.
I am guessing there is an equivalent to the call that I am using at the moment.
In the Server Routine I Call DSSetUserStatus(Arg1)
Do you know what call I use in the c code for my Parallel Routine?
I have been looking at the Parallel Job Advanced Developers Guide, is this the best one for showing me what to do.
I am guessing there is an equivalent to the call that I am using at the moment.
In the Server Routine I Call DSSetUserStatus(Arg1)
Do you know what call I use in the c code for my Parallel Routine?
Re:Setting $UserStatus from a Parallel Job
I'm afraid this isn't true. You can call routines from the BASIC Transformer as the OP is trying to do.cpratima wrote:You cannot call routines from a parallel job because PX does not understand the BASIC language that routines use.
My guess (don't know for sure) is that PX jobs may not have a 'User Status' area like Server jobs do.
![Confused :?](./images/smilies/icon_confused.gif)
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
Re:Setting $UserStatus from a Parallel Job
That's possible I am new to PX, however in the Sequence you can access the $UserStatus for the particular PX Job using ActivityVariables. I am accessing $JobName and this seems to work, $JobStatus may work as well.chulett wrote:
My guess (don't know for sure) is that PX jobs may not have a 'User Status' area like Server jobs do.
From what ArndW was saying it may be more complex though with each node potentially having a $UserStatus