SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
macro parameters in includes

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
macro parameters in includes
Author Message
Jamie



Joined: 12 Jan 2004
Posts: 5

Post macro parameters in includes Reply with quote

How do I get the @T"yymmdd" macro parameter to work in
an external file that is included using an @SCRIPT
command? I have a job that needs to have the current
date and time. I would like to put that code in the
include, but it seems that macro parameters don't
behave the same way when they are in an external job file.
Some like the @W parameter just give 0, others like the
@T"yymmdd" generate syntax errors when they are run. Any help you
could give would be appreciated.
Jamie

Mon Jan 12, 2004 10:13 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: macro parameters in includes Reply with quote

You cannot use macro-parameters in an external file directly, but you can initialize and share some variable before calling an external file or otherwise obtain dates in the file using other means.

Method 1.
For example, your external file is

////////////////////////////
Dim message, string, "Today is "
Concat message, my_date, message
MessageBox message
////////////////////////////

Please note that my_date is not defined in the file.
Here is the script job where you include that external file

Dim my_date, string, "@T"yymmdd""
@SCRIPT: my_file.jal

Method 2.
In the external file code something like the following

Dim my_date, date
Dim my_date_str, string

Today my_date
Format my_date, "yymmdd", my_date_str

: How do I get the @T"yymmdd" macro parameter to work in
: an external file that is included using an @SCRIPT
: command? I have a job that needs to have the current
: date and time. I would like to put that code in the
: include, but it seems that macro parameters don't
: behave the same way when they are in an external job file.
: Some like the @W parameter just give 0, others like the
: @T"yymmdd" generate syntax errors when they are run. Any help you
: could give would be appreciated.
: Jamie

Mon Jan 12, 2004 10:24 am 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.