# Data load editor

Create and run data load scripts from the data load editor, and create connections to data sources. When you have loaded the data it is available to the application for analysis.

Click Data load editor in the application navigation menu to open the data load editor.

Data load editor

Data load editor

Data load editor ![Data load editor, with data sources open ](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Resources/Images/Scripting/ui_gen-dle_cloud.png)

Scripts can also be generated when you load data using the data manager. However, if you need to use complex script statements, you need to create the script manually in the data load editor.

See: [Loading and transforming data with scripting](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/introduction-data-modeling.htm)

## Adding data from existing datasets

Click Add from data catalog to open the data catalog. You can add data from multiple datasets.

See: [Loading data from the data catalog](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/LoadData/adding-data-catalog.htm)

## Inserting other scripts into load scripts

Click Insert script to select an existing QVS file or another script to insert in your load script.

See: [Inserting other scripts into load scripts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/LoadData/QVS/inserting-qvs-script-editor.htm)

## Creating connections

Expand the Data sources panel to view Data connections. Click Create new connection add a connection to your script.

See: [Loading analytics data](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/LoadData/connect-data-sources.htm)

## Creating and editing scripts

Write your script code in the script editor. Each script line is numbered and the script is color coded by syntax components.

Script editor tools

| UI item | Description |
| --- | --- |
| the Search icon | Search and replace text in the script. |
| the Comment / Uncomment icon | Comment/uncomment. |
| the Indent icon | Indent code. |
| the Undent icon | Outdent code. |
| the Help icon | Activate syntax help mode. In help mode you can click on a syntax keyword (marked in blue) in the editor to access detailed syntax help. |
| the Autocomplete hints on icon | Autocomplete script hints turned on. Click to turn off. |
| the Autocomplete hints off icon | Autocomplete script hints turned off. Click to turn on. |
| the Undo icon | Undo the latest change (multiple step undo is possible). |
| the Redo icon | Redo the latest undo. |

Click the Create new icon to add a script section. The sections are executed from top to bottom.

Click the Debug icon to debug the script.

Click History to manage script versions.

See:

* [Editing load scripts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/LoadData/edit-data-load-script.htm)

* [Organizing load scripts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/LoadData/organize-script-code.htm)

* [Debugging the data load script](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/LoadData/debug-data-load-script.htm)

* [Managing load script history](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/LoadData/managing-load-script-history.htm)

## Running scripts

Click the Load data button to run the script. A dialog opens to display the progress of the data load and any messages that are generated. Additionally, you can click the Output button to view the output.

[Running load scripts to load data in applications](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/LoadData/run-script-load-data.htm)

You can also preview the load script. Previewing runs the load script while limiting the number of rows of source data loaded into the application and skipping any Store statements. You can set how many rows to include. To preview your data, click Preview data.

[Previewing data in load scripts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/ScriptEditor/previewing-scripts.htm)

Previewed or loaded data can be viewed by clicking the Preview button.

Related learning:

* [Introduction to the data load editor](https://help.qlik.com/lnk/Intro_Data_Load_Editor_QS)
* [Getting started with Qlik Sense](https://help.qlik.com/lnk/Getting_started_QS)

## Learn more

* [Introduction to the data load editor](https://help.qlik.com/lnk/Intro_Data_Load_Editor_QS)
* [Getting started with Qlik Sense](https://help.qlik.com/lnk/Getting_started_QS)