Change param values from within a job
Posted: Mon Jul 23, 2007 7:22 am
I know it's not recommended, it's not documented and future versions will not support this.
BUT,
I'd still like to try.
I have read some topics (there are a few):
viewtopic.php?t=89419&highlight=STAGECOM.JOB.STATUS
viewtopic.php?t=89625&highlight=STAGECOM.JOB.STATUS
viewtopic.php?t=90189&highlight=STAGECOM.JOB.STATUS
viewtopic.php?t=90029&highlight=STAGECOM.JOB.STATUS
and tried to put this, first in a before-job routine and then in the job control:
The only time I was able to set the value is with before-stage subroutine of a Basic Transformer. But even then this value was not accessible outside of the transformer.
So what is the proper way to perform this "illegal" operation?
BUT,
I'd still like to try.
I have read some topics (there are a few):
viewtopic.php?t=89419&highlight=STAGECOM.JOB.STATUS
viewtopic.php?t=89625&highlight=STAGECOM.JOB.STATUS
viewtopic.php?t=90189&highlight=STAGECOM.JOB.STATUS
viewtopic.php?t=90029&highlight=STAGECOM.JOB.STATUS
and tried to put this, first in a before-job routine and then in the job control:
The parameter is mentioned in a transformers link derivation and the column is then output to a seq file. But in the file there was a default value, not the one set through code.$INCLUDE DSINCLUDE JOBCONTROL.H
$INCLUDE DSINCLUDE DSD_STAGE.H
$INCLUDE DSINCLUDE DSD.H
$INCLUDE DSINCLUDE DSD_RTSTATUS.H
ErrorCode = 0
ParamName = 'dat'
ParamList = STAGECOM.JOB.CONFIG<CONTAINER.PARAM.NAMES>
Locate(ParamName,ParamList,1;ParamPos) Then
STAGECOM.JOB.STATUS<JOB.PARAM.VALUES,ParamPos> = 'value'
End
The only time I was able to set the value is with before-stage subroutine of a Basic Transformer. But even then this value was not accessible outside of the transformer.
So what is the proper way to perform this "illegal" operation?