# Adding a component in a Job script

To add and configure a component in a Job script, type in the addComponent{} function and define its properties between the brackets.

Component properties can be divided into three main parts:

* component definition
* specific settings
* component schema

## addComponent{} properties

| Function | Description | Mandatory? |
| --- | --- | --- |
| setComponentDefinition{} | Add the following parameters in this function to define the general properties:<br><br><ul> <li> <p> <span>TYPE</span>: Type in the component you want to use.</p> </li> <li> <p> <span>NAME</span>: Type in the unique name you want to give to the                  component.</p> </li> <li> <p> <span>POSITION</span> (optional): Type in the position of the component in                  the design workspace.</p> </li> </ul> | Yes |
| setSettings {} | Define the component settings. The parameters of this function are specific to each<br>component.<br><br>For more information, see [Job script properties of frequently used components](https://help.qlik.com/talend/en-US/job-script-reference-guide/8.0/job-script-properties-of-frequently-used-components). | Yes |
| addSchema {} | Use this function to define the schema of the component.<br><br>For more information, see [Defining a schema in a Job script](https://help.qlik.com/talend/en-US/job-script-reference-guide/8.0/defining-schema-in-job-script). | Yes for most components |

## Example

The following example shows how to add a tFileInputDelimited component in a Job script.

```
addComponent {
	setComponentDefinition {
		TYPE: "tFileInputDelimited",
		NAME: "tFileInputDelimited_1",
		POSITION: 192, 128
	}
...
}
```