I can reproduce this too. I am really surprised that @V macro-variables work in off-line scripts as nested macros are not supported Anyway, I can offer you the following solution Dim d, datetime Dim yyyy, number Today d DateTimePart d, "yy", yyyy logaddmessageDB "ERROR", yyyy, "@V"job_name"", "test" This will work in both on-line and off-line scripts. : // This line does not give a syntax error. : logaddmessageDB "ERROR", @V"job_id", : "@V"job_name"", Abortit_error_msg : // This line does give a syntax error. : logaddmessageDB "ERROR", @T"yyyy", : "@V"job_name"", Abortit_error_msg
|