SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
e-mail watch (macro problem)

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
e-mail watch (macro problem)
Author Message
Mark Richards



Joined: 05 Jun 2000
Posts: 31

Post Re: e-mail watch (macro problem) Reply with quote

Both of these yield a "syntax error".

I tried different combinations as well, using single instead of double quotes.

Indeed, i also tried the examples in the help file:

MessageBox “Hello from job @V”subject””

This will not compile.

Please help. Thanks.

-m-

: Dim cString, string, "@V"subject""

: or

: set cString, "@V"subject""

Tue Jan 30, 2001 10:37 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: e-mail watch (macro problem) Reply with quote

Hm... same for me, could not compile @V"subject" and @V"message".

I will check this and let you know as soon as I find out what's wrong with this

: Both of these yield a "syntax error".

: I tried different combinations as well, using single instead of double
: quotes.

: Indeed, i also tried the examples in the help file: MessageBox “Hello from
: job @V”subject””

: This will not compile.

: Please help. Thanks.

: -m-

Tue Jan 30, 2001 11:37 am View user's profile Send private message
Mark Richards



Joined: 05 Jun 2000
Posts: 31

Post Re: e-mail watch (macro problem) Reply with quote

Perhaps you can find a workaround for the problem? Please let me know.
Thanks,

Mark

: Hm... same for me, could not compile @V"subject" and
: @V"message".

: I will check this and let you know as soon as I find out what's wrong with
: this

Tue Jan 30, 2001 3:56 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: e-mail watch (macro problem) Reply with quote

These macro-variables cause "syntax error" in the JAL editor if you attempt to validate the script using the Validate Script menu item. This is because they do not exist in design-time and so expressions containing @V"subject", @V"sender", @V"attachments" and @V"message" macros cannot be evaluated. However, these variables do exist in run-time for jobs that have email trigger setup, and therefore "syntax error" should not occur.

: Perhaps you can find a workaround for the problem? Please let me know.
: Thanks,

: Mark

Wed Jan 31, 2001 1:28 am View user's profile Send private message
Mark Richards



Joined: 05 Jun 2000
Posts: 31

Post Re: e-mail watch (macro problem) Reply with quote

Using the example in the help file:

MessageBox “Hello from job @V”job_name””

I get a syntax error when i execute the script, either by pressing the RUN button or letting the job run on schedule.

I think macros are broken.

It would be great if this could be repaired as the e-mail triggering is very powerful and we would like to use it.

Mark Richards
Boston

: These macro-variables cause "syntax error" in the JAL editor if you
: attempt to validate the script using the Validate Script menu item. This
: is because they do not exist in design-time and so expressions containing
: @V"subject", @V"sender", @V"attachments" and
: @V"message" macros cannot be evaluated. However, these variables
: do exist in run-time for jobs that have email trigger setup, and therefore
: "syntax error" should not occur.

Thu Feb 01, 2001 12:47 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: e-mail watch (macro problem) Reply with quote

I tried MessageBox "Hello from job @V"job_name"" and it works fine for me.

1. Please check that you use straight quotes and not these that appear in you post (could be a result of passing through MS word?) Also never paste text from MS Word that may have some non-visual formatting characters causing the syntax error.
2. Check that the tested job name does not have quotes in the name. @V"job_name" is simply substituted with the job name as it is.

: Using the example in the help file: MessageBox “Hello from job @V”job_name””

: I get a syntax error when i execute the script, either by pressing the RUN
: button or letting the job run on schedule.

: I think macros are broken.

: It would be great if this could be repaired as the e-mail triggering is very
: powerful and we would like to use it.

: Mark Richards
: Boston

Thu Feb 01, 2001 1:10 pm View user's profile Send private message
Mark Richards



Joined: 05 Jun 2000
Posts: 31

Post Re: e-mail watch (macro problem) Reply with quote

As you can imagine, this problem is becoming most perplexing.

1. I am using straight quotes, typed in using the 24x7 editor.
The text is entered as:

Hello from job @V job_name

By Double Quote I mean " not ''

I am not using word or cutting/pasting.

Just to be certain it didn't have to do with the job name, i also tried @V"user"

I am running the latest maintenance release 2.47.

Any other suggestions?

-m-

: I tried MessageBox "Hello from job @V"job_name"" and it
: works fine for me.

: 1. Please check that you use straight quotes and not these that appear in you
: post (could be a result of passing through MS word?) Also never paste text
: from MS Word that may have some non-visual formatting characters causing
: the syntax error.
: 2. Check that the tested job name does not have quotes in the name.
: @V"job_name" is simply substituted with the job name as it is.

Thu Feb 01, 2001 2:12 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: e-mail watch (macro problem) Reply with quote

Please create a new job and try the following script, please type it in the Editor

MessageBox "Hello @V"user""

When finished, click the Run Now to test the job

: As you can imagine, this problem is becoming most perplexing.

: 1. I am using straight quotes, typed in using the 24x7 editor.
: The text is entered as: Hello from job @V job_name

: By Double Quote I mean " not ''

: I am not using word or cutting/pasting.

: Just to be certain it didn't have to do with the job name, i also tried
: @V"user"

: I am running the latest maintenance release 2.47.

: Any other suggestions?

: -m-

Thu Feb 01, 2001 3:33 pm View user's profile Send private message
Mark Richards



Joined: 05 Jun 2000
Posts: 31

Post Re: e-mail watch (macro problem) Reply with quote

Thank you! Creating a new job did the trick. I have no idea why. Perhaps the database was corrupted? Do you want to take a look at the database? I have not yet deleted the defective job.

Mark

: Please create a new job and try the following script, please type it in the
: Editor

: MessageBox "Hello @V"user""

: When finished, click the Run Now to test the job

Thu Feb 01, 2001 3:57 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.