SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Enablejob function

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Enablejob function
Author Message
jojo29



Joined: 19 Feb 2013
Posts: 1
Country: New Zealand

Post Enablejob function Reply with quote
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 View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7840

Post Reply with quote
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 View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
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


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.