SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Exit statement not working

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Exit statement not working
Author Message
Paul Messink



Joined: 23 Apr 2004
Posts: 6

Post Exit statement not working Reply with quote

I have the following code snippet in a 24x7 job
which is activated as "Run on Startup""

VERIFY_JOB_QUEUE:
// now verify we have a production job queue
FileExists global.qfilename, ok
IfThen ok, CHECK_MODEM_LIST

// oops... no Job control file
CreateAlert "No Job Queue"
Exit

CHECK_MODEM_LIST:

I know that the missing file is being trapped,
since I am getting an alert email sent by
CreateAlert. But the program does not exit, it
continues on. Can you tell what I'm missing?

Thanks
Paul

Wed Nov 03, 2004 2:24 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: Exit statement not working Reply with quote

I suspect this jobs is being run twice. One time it exist, another time it jums over the Exit because of the "if" logic.
Try adding a MessageBox to the script and rrstarting the scheduler. If am right you will get the message box displayed twice.

If this is something else please post the trace file for this script.

: I have the following code snippet in a 24x7 job
: which is activated as "Run on Startup""

: VERIFY_JOB_QUEUE: // now verify we have a production job queue
: FileExists global.qfilename, ok
: IfThen ok, CHECK_MODEM_LIST

: // oops... no Job control file
: CreateAlert "No Job Queue"
: Exit

: CHECK_MODEM_LIST: I know that the missing file is being trapped,
: since I am getting an alert email sent by
: CreateAlert. But the program does not exit, it
: continues on. Can you tell what I'm missing?

: Thanks
: Paul

Wed Nov 03, 2004 2:33 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.