 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
jojo29
Joined: 19 Feb 2013 Posts: 1 Country: New Zealand |
|
Enablejob function |
|
I am trying to set up a 24 x 7 job which contains 4 steps. The first step is an enablejob step which then needs to start step 2, but I am unable to figure out the correct JAL to start step 2.
The JAL I have tried so far is
Option 1
enablejob ("jobname:10")
jobrun (newjobname)
Option2
//Create variables
Dim( newjobname, string)
dim( jobname, string, "@V"job_name"")
dim( process, string)
dim( stepnumber, number)
gettoken (":", jobname, process)
gettoken (":", jobname, stepnumber)
Start_Log(process, stepnumber)
Enablejob("jobname:10")
dim (newstep, number)
dim (newjobname, string)
add (stepnumber, 10, newstep)
// run the next job
concatex (process, ":", newstep, newjobname)
jobrun (newjobname)
Consequently I have succeeded in getting step 2 to run by selecting Run another job in the notification events/actions step when the first step has finished. I am not convinced this is the correct method as we normally run the next step from the JAL.
Would appreciate any help with this issue.
|
|
Tue Feb 19, 2013 6:27 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
Which version are you running? There could be version specific nuances.
The syntax is EnabledJob( 55 )
Replace 55 with the job number of the job you want to enable.
PS. Looking at your script, it appears you are trying to implement something unnecessary complicated, something that can be done much easier. Please describe what you are trying to implement.
|
|
Tue Feb 19, 2013 11:21 pm |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|