# Create a script with regional settings

Create a script that contains the regional settings from the computer by using the [GetEmptyScript method](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/EngineJSONAPI/Content/service-doc-getemptyscript.htm).

## Examples

Example 1:

[](https://help.qlik.com/en-US/sense-developer/Subsystems/EngineAPI/Content/Sense_EngineAPI/CreatingAppLoadingData/EditDataLoadScript/create-script-with-regional-settings.htm)

#### The goal is to create a script that contains the regional settings.

The client sends:

```
{
  "jsonrpc": "2.0",
  "id": 3,
  "method": "GetEmptyScript",
  "handle": 1,
  "params": []
}
```

The engine returns:

```
{
  "jsonrpc": "2.0",
  "id": 3,
  "result": {
    "qReturn": "///$tab Main\r\nSET ThousandSep=',';\r\nSET DecimalSep='.';\r\nSET MoneyThousandSep=',';\r\nSET MoneyDecimalSep='.';\r\nSET MoneyFormat='$#,##0.00;($#,##0.00)';\r\nSET TimeFormat='h:mm:ss TT';\r\nSET DateFormat='M/D/YYYY';\r\nSET TimestampFormat='M/D/YYYY h:mm:ss[.fff] TT';\r\nSET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';\r\nSET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';\r\nSET LongMonthNames='january;februari;march;april;may;june;july;august;septembre;octobre;november;december';\r\nSET LongDayNames='mobday;tuesday;wednesday;thursday;friday;saturday;sunday';\r\nSET FirstWeekDay=0;\r\nSET BrokenWeeks=0;\r\nSET ReferenceDay=0;\r\nSET FirstMonthOfYear=0;\r\nSET CollationLocale='';\r\n\r\n"
  }
}
```

The script is created, and the script's main section is named Main.

Example 2:

[](https://help.qlik.com/en-US/sense-developer/Subsystems/EngineAPI/Content/Sense_EngineAPI/CreatingAppLoadingData/EditDataLoadScript/create-script-with-regional-settings.htm)

#### The goal is to create a script that contains the regional settings. The main section should be called Principal.

The client sends:

```
{
  "jsonrpc": "2.0",
  "id": 4,
  "method": "GetEmptyScript",
  "handle": 1,
  "params": [
    "Principal"
  ]
}
```

The engine returns:

```
{
  "jsonrpc": "2.0",
  "id": 3,
  "result": {
    "qReturn": "///$tab Principal\r\nSET ThousandSep=',';\r\nSET DecimalSep='.';\r\nSET MoneyThousandSep=',';\r\nSET MoneyDecimalSep='.';\r\nSET MoneyFormat='$#,##0.00;($#,##0.00)';\r\nSET TimeFormat='h:mm:ss TT';\r\nSET DateFormat='M/D/YYYY';\r\nSET TimestampFormat='M/D/YYYY h:mm:ss[.fff] TT';\r\nSET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';\r\nSET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';\r\nSET LongMonthNames='january;februari;march;april;may;june;july;august;septembre;octobre;november;december';\r\nSET LongDayNames='mobday;tuesday;wednesday;thursday;friday;saturday;sunday';\r\nSET FirstWeekDay=0;\r\nSET BrokenWeeks=0;\r\nSET ReferenceDay=0;\r\nSET FirstMonthOfYear=0;\r\nSET CollationLocale='';\r\n\r\n"
  }
}
```

The script is created, and the script's main section is named Principal.