# Set

The set statement is used for defining script variables. These can be used for substituting strings, paths, drives, and so on.

Syntax:

Set variablename=string

Example 1:

`Set FileToUse=Data1.csv;`

Example 2:

`Set Constant="My 
 string";`

Example 3:

`Set 
 BudgetYear=2012;`

## Learn more

* [Let](https://help.qlik.com/en-US/sense/May2026/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptRegularStatements/Let.htm)
* [Working with variables in the data load editor](https://help.qlik.com/en-US/sense/May2026/Subsystems/Hub/Content/Sense_Hub/Scripting/work-with-variables-in-data-load-editor.htm)