Sets the Data Job macro variable value, indicated by the first parameter, to the values in the second parameter.
Category: Macro Variable
SETVAR(macroname, value)
macroname
Sets the macro named in macroname to value. The macroname argument is a string
value
The value argument can be any of the following: real, integer, string, date, or Boolean
string macroName
macroName = "myMacro"
newValue = 10
success=setvar(macroName, newValue)