# Directives

SETDEV | Set File/Device Characteristics

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$ | Use the SETDEV IOL= directive to alter the various IOLists associated with a currently open channel.
SETDEV (chan) KEY: numexpr,strexpr | Use the SETDEV KEY directive to either assign or alter named keys for an open channel.
SETDEV (chan)lcs_devtype$ | 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) | Use the SETDEV MERGE WITH directive to transfer all TCP sockets associated with one channel (chan2) to another (chan1). (The SETDEV MERGE WITH directive was added in PxPlus v10.20.)
SETDEV (chan) PROGRAM "prog_name" | 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$ | Use this form of the SETDEV directive to dynamically change the field separator for a file.
SETDEV (chan)SET option$ TO value$ | Use this form of the SETDEV directive to dynamically change various file options. (The SETDEV SET directive was added in PxPlus v11.00.)
SETDEV TSK( ) task$ | Use the SETDEV TSK( ) directive to add a string to the end of the internal table for the TSK( ) function.