# Inserting other scripts into load scripts

You can insert scripts, both other scripts created in Qlik Cloud and QVS files, into load scripts in Data load editor and Script. This allows you to reuse scripting content across multiple scripts.

You insert other scripts into your load script from Data sources in your script editor. Inserting the script adds the system variable Must\_Include with the definition of the script ID in the case of other scripts or the path to the QVS file. For example, `$(Must_Include=lib://DataFiles/test.qvs)`. For more information on Must\_Include, see [Include](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/Include.htm).

## Viewing included scripts

Under Included scripts, you can view scripts or QVS files you have inserted that have been successfully included during the last run of Preview data, Load data, or Export data. You can select a script or QVS file to preview the inserted load script.

Included scripts in Script

Included scripts in Script

Included scriptsIncluded scripts in ScriptScript ![Script editor showing a QVS script selected in Included scripts.](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Resources/Images/Scripting/ui_script-editor-qvs-preview.png)

In the load script, you can click &lt;/&gt; after an inserted script to view a preview of the inserted script.

Preview of an inserted QVS script in Script

Preview of an inserted QVS script in Script

Preview of an inserted QVSQVS script in ScriptScript ![Preview of an inserted QVS script in Script editor. The preview shows the QVS script with an option to Open the script.](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Resources/Images/Scripting/ui_script-qvs-preview-load-scripts.png)

## Inserting scripts from Data catalog

Do the following:

1. In Data sources,click Include script.

2. Select the script and click Next.

3. Click Insert.

## Inserting QVS from Data connections

Do the following:

1. In Data source, under Data connections do one of the following:

   * For uploaded QVS files, under DataFiles, click the Select script icon.

   * For QVS files in web storage, under the corresponding web storage connection, click the Select script icon.

2. Select the script and click Next.

3. Click Insert script.

## Permissions

When inserting a different script into your load script, you need to have certain permissions for the space containing the inserted script. For more information, see [Permissions for inserting scripts](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemVariables/Include.htm#Permissions).