doing something wrong, simple question: what...
I'm trying to populate the user status with the actual value of a stage variable in a parallel job in order to be used by the sequence.
Calling this simple after job routine in the job (parameter is stagename;svname)
Code: Select all
$INCLUDE DSINCLUDE JOBCONTROL.H
MyVariable = ''
StageName = Trim(Field(InputArg,";",1))
VarName = Trim(Field(InputArg,";",2))
*Call DSLogInfo(StageName,DSJ.ME)
*Call DSLogInfo(VarName,DSJ.ME)
MyVariable = DSGetVarInfo(DSJ.ME,StageName,VarName,DSJ.VARVALUE)
Call DSLogInfo('{':MyVariable:'}', DSJ.ME)
Call DSSetUserStatus(MyVariable)
ErrorCode = 0 ;* set this to non-zero to stop the stage/job
Can't seem to get the the actual value of the variable into MyVariable... (It's always empty...)
![Rolling Eyes :roll:](./images/smilies/icon_rolleyes.gif)
And yes, it does contain a value at runtime (the stage variable is also written to Oracle, checked the table, and the value is present...)
The parallel job being multi instance shouldn't be a problem right ?
thanks in advance,
William