Dollar-sign expansion using a variable
When using a variable for text replacement in the script or in an expression, the following syntax is used:
$(variablename)
For numeric variable expansions, the following syntax is used:
$(#variablename)
It always yields a valid decimal-point representation of the numeric value of the variable, possibly with exponential notation (for very large/small numbers). If variablename does not exist or does not contain a numeric value, it will be expanded to 0 instead.
Example:
SET DecimalSep=',';
LET X = 7/2;
The dollar-sign expansion $(X) will
expand to
Example:
Set Mypath=C:\MyDocs\Files\;
...
LOAD * from $(MyPath)abc.csv;
Data will be loaded from C:\MyDocs\Files\abc.csv.
Example:
Set CurrentYear=1992;
...
SQL SELECT * FROM table1 WHERE Year=$(CurrentYear);
Rows with
Example:
In this example, all .
LOAD * FROM[.\file1.txt];
Concatenate LOAD * FROM[.\file2.txt];
Concatenate LOAD * FROM[.\file3.txt];