beginner fundamentals
slug: example-fundamentals-variable-substitution-with-dot-notationVariables in DAZL are treated as global, available to all steps when defined in the 'variables' section of the script. Variables can be organized into hierarchies in YAML, and the hierarchies can be referenced with dot notation between the layers.
You have nested configuration variables and need to reference them in steps.
Use dot notation inside curly braces: {parent.child}
variables:
database:
mySourceFile: freqTest
backupSource: freqTest_backup
steps:
- stepName: load
dataset:
source: "{database.mySourceFile}" # Resolves to "freqTest"
type: sql
output: dataToAnalyze
mySourceFile in one place{database.mySourceFile} is clearer than just freqTest