I created the following routine and i compiled it and it is successfully compile.But when i sued it in job activity custom conditon i am getting the follwoing error when i compiled that sequence.
$INCLUDE DSINCLUDE JOBCONTROL.H
JobHandle=DSAttachJob(JobName,DSJ.ERRFATAL)
JobStatus=DSGetJobInfo(JobHandle,DSJ.JOBINTERIMSTATUS)
Ans=JobStatus
Compiling: Source = 'RT_BP79/JOB.45753036.DT.1464866372', Object = 'RT_BP79.O/JOB.45753036.DT.1464866372'
*********************************************************************************************************************************
Array 'TestStat' never dimensioned.
1 Errors detected, No Object Code Produced.
(SeqTest)
Can any one please help me to come out from this problem.
Problem using routie in custom condition in Jobactivity stag
Moderators: chulett, rschirm, roy
And you are the same as the original poster?
As noted, you cannot use a routine in a trigger expression. The ellipsis 'picker' thingy may let you pick one but they cannot be used there. And now you've see the error generated when you attempt to. You should be using a Routine Activity stage to call it and then check the $ReturnValue in a Trigger.
Are you sure you want to be checking JOBINTERIMSTATUS in a Sequence when by then I assume the job ran to completion?
As noted, you cannot use a routine in a trigger expression. The ellipsis 'picker' thingy may let you pick one but they cannot be used there. And now you've see the error generated when you attempt to. You should be using a Routine Activity stage to call it and then check the $ReturnValue in a Trigger.
Are you sure you want to be checking JOBINTERIMSTATUS in a Sequence when by then I assume the job ran to completion?
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers