SETVAR Function

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

Category: Macro Variable
Returned data type: Boolean

Syntax

SETVAR(macroname, value)

Required Arguments

macroname

specifies the name of the Data Job macro variable to set; this can be specified as a string.

value

specifies the value to set to macroname; this value can have a data type of real, integer, string, date, or Boolean.

Details

This function return TRUE if it completed successfully. Otherwise, it returns FALSE.

Example

string macroName

macroName = "myMacro"
newValue = 10
 
success=setvar(macroName, newValue)