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
|