GETVAR Function

Returns runtime variables. These are variables that are passed into DataFlux Data Management Studio on the command line using -VAR or -VARFILE.

Category: Macro Variable
Returned data type: String

Syntax

GETVAR(string1<, string2>)

Required Argument

string1

the first parameter is the name of the variable and is not case sensitive. The second parameter is the value that is returned if the variable does not exist

Optional Argument

string2

specifies the value that is returned if the variable does not exist

Example

testInParam=getvar("DF_String_Input")

File f

f.open("%%DataFlowTargets%%DF_String_Input.txt", "w")

f.writeline("DF_String_Input = "&testInParam)

seteof()

f.close()