# SETDEV Set File/Device Characteristics

> Source: https://manual.pvxplus.com/directives/setdev

The **SETDEV** directive has a variety of formats that allow for the dynamic definition of file characteristics and for the definition of the system TSK tables.

## Formats

Use the links below to access additional information for a ***specific*** format:

| **Format** | **Description** |
| --- | --- |
| [SETDEV (chan) IOL= iolref$](https://manual.pvxplus.com/directives/setdev-iol) | Use the **SETDEV IOL=** directive to alter the various IOLists associated with a currently open channel. |
| [SETDEV (chan) KEY: numexpr,strexpr](https://manual.pvxplus.com/directives/setdev-key) | Use the **SETDEV KEY** directive to either assign or alter named keys for an open channel. |
| [SETDEV (chan)lcs_devtype$](https://manual.pvxplus.com/directives/setdev-name) | Use the **SETDEV** directive to make dynamic changes in the value of the **DEVICE TYPE** field maintained for device files. |
| [SETDEV (chan1) MERGE WITH (chan2)](https://manual.pvxplus.com/directives/setdev-merge) | Use the **SETDEV MERGE WITH** directive to transfer all TCP sockets associated with one channel (chan2) to another (chan1).<br>*(The SETDEV MERGE WITH directive was added in PxPlus v10.20.)* |
| [SETDEV (chan) PROGRAM "prog_name"](https://manual.pvxplus.com/directives/setdev-program) | Use the **SETDEV PROGRAM** directive to define an Embedded I/O program, which will be attached to an open channel if the file does not already have one associated with it. |
| [SETDEV (chan)SEP=char$](https://manual.pvxplus.com/directives/setdev-sep) | Use this form of the **SETDEV** directive to dynamically change the field separator for a file. |
| [SETDEV (chan)SET option$ TO value$](https://manual.pvxplus.com/directives/setdev-set) | Use this form of the **SETDEV** directive to dynamically change various file options.<br>*(The SETDEV SET directive was added in PxPlus v11.00.)* |
| [SETDEV TSK( ) task$](https://manual.pvxplus.com/directives/setdev-tsk) | Use the **SETDEV TSK( )** directive to add a string to the end of the internal table for the **TSK( )** function. |
