SETVAR Function

Sets the Data Job macro variable value, indicated by the first parameter, to the values in the second parameter.

Category: Macro Variable


Syntax

SETVAR(macroname, value)

Required Arguments

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

Example

string macroName


macroName = "myMacro"

newValue = 10

 

success=setvar(macroName, newValue)