GETVAR Function

Returns run-time variables. These are variables that are passed into DataFlux Data Management Studio on the command line using -c or -o.

Category: Macro Variable
Returned data type: String

Syntax

GETVAR(string1<, string2>)

Required Argument

string1

specifies the name of the variable to return. string1 is not case sensitive.

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()